help me with this code...!!!! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

help me with this code...!!!!

here is my another typing speed test code....working fine..but raising one error which i m not getting..help me with this..! https://code.sololearn.com/c6wMCxw6Q79J/#py kindly help me to remove this error..!

21st Oct 2020, 2:59 PM
Srishti
Srishti - avatar
13 Answers
+ 6
the timing will be wrong, the programme will take the time it took to receive the text ‘a very short time’ and the typing speed will be rediculisly fast.
21st Oct 2020, 3:31 PM
Abdulaziz_albusaidi
Abdulaziz_albusaidi - avatar
+ 4
The ide used in sololearn doesn't allow you to get inputs more than once. So you can run your code by typing each word on separate lines: empty string or not Whatever not Whatever empty string now your program should work.
21st Oct 2020, 3:21 PM
QTWizard
+ 3
The sololearn interpreter isn’t interactive, so I dont think this will work.
21st Oct 2020, 3:16 PM
Abdulaziz_albusaidi
Abdulaziz_albusaidi - avatar
+ 2
Srishti you need to put it inside while loop
21st Oct 2020, 3:24 PM
Ananiya Jemberu
Ananiya Jemberu - avatar
+ 2
Your code is fine. It's just with the SOLOLEARN playground. It takes input at once whereby each input is separated by a newline character "\n"
23rd Oct 2020, 6:59 AM
Kirabo Ibrahim
Kirabo Ibrahim - avatar
+ 1
Enter something: This line belongs to the while condition This line for the body of the loop This line for the while This line for the body And so on When you reach the while condition line, enter nothing and press submit. Hope you get it.
21st Oct 2020, 3:28 PM
QTWizard
0
So is there any way to make it work?
21st Oct 2020, 3:21 PM
Srishti
Srishti - avatar
0
QTWizard I am doing the same..!! but then also not working..
21st Oct 2020, 3:23 PM
Srishti
Srishti - avatar
0
While str... will break if you enter an empty string. so you need to figure out when the word much the while string.
21st Oct 2020, 3:25 PM
QTWizard
0
Ananiya Jemberu What does tht mean?? it's runnning in the while loop only..
21st Oct 2020, 3:26 PM
Srishti
Srishti - avatar
0
Abdulaziz_albusaidi that's true.
21st Oct 2020, 3:32 PM
QTWizard
0
23rd Oct 2020, 11:28 AM
Ziiyyaah Ziiyyaah
Ziiyyaah Ziiyyaah - avatar