0
whats wrong with my code?
str(input("Sou aresei na vlepeis Shad0wSt3ps?:" + ("(NAI/OXI)"))) #(YES/NO) def ("NAI"): print("EISAI KALA?") def ("OXI"): print("You have chosen the right path") input()
7 Réponses
0
Your input has no variable attached.
Try:
choice = input()
The function names are surrounded by parenthesis.
Try:
def func():
print('whatever')
And that bottom call to input will ask for an input with no prompt, but thats it. Once you have your first input, then use if statements like:
if (this happens):
(do this)
else:
(do this instead)
0
@Slick i get what you are trying to say, but i dont understand how to imploment it on my code
0
Thats cool man, it does seems like a lot. But if you break it into pieces its much more managable.
Work on getting, and printing input before you work with manipulating output with it.
a = 'hello'
print(a)
0
@Slick idk if you are trying to be ironic, but thats like super easy
0
Not at all man, i mean no offense. I just dont know exactly what you know, I'm not in your head partner. Once you have that then just take it to the next step.
a = input('Enter a letter or two')
print(a)
0
@Slick ok
0
Then after you got that down
a = input('Enter yes or no')
# "if statements" come in now
if a == 'yes':
print('You typed yes!')
elif a == 'no':
print('You typed no!')
else:
print('Can you repeat that? ')