My strings dont work | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

My strings dont work

When I input '<text>' (with no <>) there is no input, what can I do?

11th Jun 2020, 2:21 PM
apinchenabos GD
apinchenabos GD - avatar
13 Answers
+ 3
Print(input())
12th Jun 2020, 4:23 PM
Official regan
Official regan - avatar
+ 2
You mean when you input 'text' it doesn't display?
11th Jun 2020, 2:24 PM
Abhay
Abhay - avatar
+ 2
It works fine when I tried
11th Jun 2020, 2:25 PM
Abhay
Abhay - avatar
+ 2
You need to use print(input())
11th Jun 2020, 2:27 PM
Abhay
Abhay - avatar
+ 2
Where did it said?
11th Jun 2020, 2:29 PM
Abhay
Abhay - avatar
+ 2
If it's interpreter there it will print directly using">>>" but in sololearn playground you need to use print ,also I checked the lesson you were talking about ,you should go through comments section as well
11th Jun 2020, 2:33 PM
Abhay
Abhay - avatar
+ 1
yes
11th Jun 2020, 2:24 PM
apinchenabos GD
apinchenabos GD - avatar
+ 1
It happens only in the playground, playground bug.
11th Jun 2020, 2:26 PM
Seb TheS
Seb TheS - avatar
+ 1
then why in the learning it says that you can write with 'text'
11th Jun 2020, 2:28 PM
apinchenabos GD
apinchenabos GD - avatar
+ 1
oh ok
11th Jun 2020, 2:34 PM
apinchenabos GD
apinchenabos GD - avatar
11th Jun 2020, 2:36 PM
Emanuel Maliaño
Emanuel Maliaño - avatar
0
You should use input('<text>')
13th Jun 2020, 4:29 AM
Akshay
Akshay - avatar