Hey everyone
I'm new to Ubuntu/Linux and programming in Python as well. I installed Ubuntu on my parents old dell yesterday. The last two weeks or so I've been learning Python. I installed idle on my windows computers and haven't had any issues using it so far. Now I'm trying to use IDLE for Ubuntu and am having quite a few problems. I'm new to this so if these seem like dumb questions please bear with me. Any help would be appreciated.
-When I write a file in IDLE and save it to a file on my desktop with the .py extension and then proceed to click on it, instead of executing the file like it does in windows it just comes up as a text file with the code. In windows a command prompt comes up and executes the file as written.
-I wrote the following code
name = input("Hi. What's your name? ")
print(name)
print("Hi,", name)
input("\n\nPress the enter key to exit.")
When I run this in the shell it will prompt me to enter my name like it should. Then after entering it I get this big error message in red print.
Maybe I'm missing something simple here-any help would be appreciated.
Bookmarks