s = input("enter something:")
print(s)
d = input("enter something else")
print(d)
so once I input a string.. the program does not proceed.. nor does it print the string. (i'm a noob at python rn) [I'm using sublimeText3 + Anaconda]
s = input("enter something:")
print(s)
d = input("enter something else")
print(d)
so once I input a string.. the program does not proceed.. nor does it print the string. (i'm a noob at python rn) [I'm using sublimeText3 + Anaconda]
Are you running this on Python 2 or Python 3? Actually, with Python3, in terminal, your code runs fine to me. To check Python version, just type in terminal:
python --version
if it yields something like Python 2.7, try to run your code executing python3 instead. Otherwise, consider using raw_input()
:)
EDIT: as others pointed out, it could something glitchy with your IDE. Try with terminal first!