+ 1

How do you get python to print a given input for a variable

B. T.W I'm brand new to python

19th Nov 2017, 10:00 PM
Griff
3 Answers
19th Nov 2017, 10:06 PM
Steve
Steve - avatar
+ 1
Yes thank you very much 'steve'
19th Nov 2017, 10:18 PM
Griff
+ 1
input() asks for a string The parameter inside is the text printed befire you ask for a value. To convert datatype just use: int() str() #unnecessary though float() list() eval() #best one, converts datatype according to value
20th Nov 2017, 2:26 AM
👑 Prometheus 🇾🇬
👑 Prometheus 🇾🇬 - avatar