+ 1

Help me

Hey coders! I wanna ask you… when i open this code in PC and countdown runout my code (file) turn off… i want that the code (file) will be still open https://code.sololearn.com/cZxvOSJwcHde/?ref=app

7th Oct 2021, 9:13 AM
Tomáš
Tomáš - avatar
3 Respostas
+ 3
Tomáš , the code works perfect in a regular IDE but not in sololearn playground.
7th Oct 2021, 9:55 AM
Lothar
Lothar - avatar
+ 3
Tomáš , you can not change the way how sololearn is working. it is not an interactive mode, so the code is transferred to sololearn, it is executed and the result will be displayed in the app. BTW: you can use f-string in your code instead of format(): ... mins, secs = divmod(t, 60) print(f"{mins:02d}:{secs:02d}", end ="\r") time.sleep(1) t -= 1 ...
7th Oct 2021, 10:05 AM
Lothar
Lothar - avatar
+ 1
Yeah i know but it automaticlly turn off program is it some code to do it manually?
7th Oct 2021, 10:01 AM
Tomáš
Tomáš - avatar