Why doesn't the age = int(input()) work wheneverI put a value in for age inside input's brackets | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why doesn't the age = int(input()) work wheneverI put a value in for age inside input's brackets

#input hard

31st Aug 2020, 8:01 AM
Mahin Dagli
12 Answers
+ 1
Try to put those two numbers in separate lines, as follows ... 90 9 Then hit Submit button ...
31st Aug 2020, 8:18 AM
Ipang
+ 2
First = int(input()) Second = int(input()) print(First, Second) Run code and put these numbers when the input dialog comes 2000 20 Try it and tell me how it goes. If it doesn't work, then you need to share your code for analysis. Just follow the below guide to share links 👍 https://www.sololearn.com/post/75089/?ref=app
31st Aug 2020, 8:26 AM
Ipang
31st Aug 2020, 8:27 AM
Vadivelan
+ 1
No, write just like this First = int(input()) Second = int(input()) print(First, Second) Tap on "Run" button in the code editor and provide these numbers when the input dialog pops up 2000 20 Hit "Submit" button ... And please also see the code given by VadiVelan. It shows you how input works in SoloLearn.
31st Aug 2020, 9:01 AM
Ipang
0
What value did you give in the input dialog?
31st Aug 2020, 8:16 AM
Ipang
0
90 and 9
31st Aug 2020, 8:17 AM
Mahin Dagli
0
Ok I will try
31st Aug 2020, 8:18 AM
Mahin Dagli
0
I don't understand give me an example
31st Aug 2020, 8:22 AM
Mahin Dagli
0
Oh and I did the numbers I said one at a time
31st Aug 2020, 8:23 AM
Mahin Dagli
0
Didn't work out but on the bright side thanks for helping me out
31st Aug 2020, 8:46 AM
Mahin Dagli
0
Wait lemme try again
31st Aug 2020, 8:52 AM
Mahin Dagli
0
First = int(input(2000)) Second = int(input(20)) (print) (First,Second) This is what I wrote
31st Aug 2020, 8:56 AM
Mahin Dagli