What did i wrong, i want use my own edit | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What did i wrong, i want use my own edit

When i want programming my "own" editor i write. x = input("How old are u?" ) print(x) The cmd always closes when i write 20 and prrss enter

15th Dec 2016, 5:47 PM
Sönke Sproll
Sönke Sproll - avatar
11 Answers
+ 2
Phython3
15th Dec 2016, 5:54 PM
Sönke Sproll
Sönke Sproll - avatar
+ 2
My comp is doing updates right now but i will try it and thank u
15th Dec 2016, 5:57 PM
Sönke Sproll
Sönke Sproll - avatar
+ 2
but i thik the input in the end will make when i press enter it closes too
15th Dec 2016, 5:58 PM
Sönke Sproll
Sönke Sproll - avatar
+ 2
I tried the input() it worked:) thank u all.
15th Dec 2016, 6:02 PM
Sönke Sproll
Sönke Sproll - avatar
+ 2
No it is the dataname and than C:users/etc.
15th Dec 2016, 6:03 PM
Sönke Sproll
Sönke Sproll - avatar
+ 1
add another line input() Also show the full code if that doesn't work.
15th Dec 2016, 5:50 PM
Uran Kajtazaj
Uran Kajtazaj - avatar
+ 1
it is the full code and i have to say i start the program than cmd opends so i dont give anything exept the input in
15th Dec 2016, 5:53 PM
Sönke Sproll
Sönke Sproll - avatar
+ 1
Did you try adding input() at the end ?
15th Dec 2016, 5:55 PM
Uran Kajtazaj
Uran Kajtazaj - avatar
+ 1
when you run it you should do like this python3 appName.py Are you doing it like that ?
15th Dec 2016, 6:00 PM
Uran Kajtazaj
Uran Kajtazaj - avatar
0
Is this Python2 or Python3
15th Dec 2016, 5:53 PM
Rishi Anand
Rishi Anand - avatar
0
There is nothing wrong here Sonke. Only thing that could be is that print function is not supported in Python2. Instead try print x
15th Dec 2016, 5:58 PM
Rishi Anand
Rishi Anand - avatar