Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
why ain't this python 3.4 not working?
so I haven't done python in a why but I can get an input to work. So can someone tell me what is wrong with this?
request = input("What would you like to do? ")
print (request)
Thanks,
4 Answers
- ?Lv 57 years ago
#filename: gamebug.py
request = input("What would you like to do? ")
print(request)
'''output:
python3 gamebug.py
What would you like to do? very little
very little
'''
>
> John (gnujohn) [It works, as far as it goes.]
- 4 years ago
if there were any more issues with your command it would break your computer entirely
- uk_staffieLv 77 years ago
That code should work, are you getting any errors?
>>> request = input("What would you like to do? ")
What would you like to do? nothing
>>> print (request)
nothing
>>>
- 7 years ago
I found out why, I was running it in Python 2.7
I was doing sudo python filename.py
Instead of sudo python3 filename.py