+ 1

Python

When I’ve got a piece of code and I run it a white box pops up and asks for input what should I put hear and what piece of the manual is it under variables, strings etc

14th Jun 2019, 11:04 PM
nick
nick - avatar
11 Answers
+ 1
Yes
14th Jun 2019, 11:25 PM
Jackson O’Donnell
+ 2
That's strictly a sololearn thing. Just put in what you would want to input for the program. Different inputs separated by a return.
14th Jun 2019, 11:09 PM
Jackson O’Donnell
+ 1
could you give me an exapmle of somthing i would put there or
14th Jun 2019, 11:10 PM
nick
nick - avatar
+ 1
I have no idea what your code is?
14th Jun 2019, 11:13 PM
Jackson O’Donnell
+ 1
print(float(input("Enter a number: ")) + float(input("Enter another number: ")))
14th Jun 2019, 11:15 PM
nick
nick - avatar
+ 1
5 6
14th Jun 2019, 11:15 PM
Jackson O’Donnell
+ 1
thank you that makes alot more sence now
14th Jun 2019, 11:22 PM
nick
nick - avatar
+ 1
could you lastley give me example for this peice of code foo = input("Enter a number: ") print(foo)
14th Jun 2019, 11:23 PM
nick
nick - avatar
+ 1
7
14th Jun 2019, 11:23 PM
Jackson O’Donnell
+ 1
so is it just basicaly asking me for the input were its says entre number in this example
14th Jun 2019, 11:25 PM
nick
nick - avatar
+ 1
well ill be god dammed thanks pall thats made type conversion make much more sence
14th Jun 2019, 11:27 PM
nick
nick - avatar