- 2
Need some help in py
I have assigned x = "hero" now I want to write a script by which when the user inputs the word x the output should be hero
5 odpowiedzi
+ 5
# Did you mean:
x = 'hero'
inp = input('Enter a word: ')
if inp == x:
print(x)
else:
print('Wrong answer...')
# ?
+ 3
Ok... but now you've understanded the principle, don't you? ;P
0
can u write the whole script?
0
thanks for the answer
but this is what I really meant :
https://code.sololearn.com/cTNGg6aD2xr3/?ref=app
0
yes
thanks for the help.