python - How would I make what the user typed for else into a variable/input? -


else=(x = raw_input("enter\n")):     print(x) 

i have tried doing basing off of correct statement...

x = raw_input("enter\n") print(x) 

if doing if statement , wanted input after else ran run normal in if/else flow.

depending on trying have better way it. not sure skill level highly recommend jessica mckellers basic tutorials on youtube or basic python tutorial tigerhawk recommended.

 if something:     print("hello") else:     x = raw_input("enter ")     print(x) 

Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -