Posts by Atomic • 1 point
3 posts
-
-1
votes4
answers89
viewsA: Repetition is not equivalent to one second
For your case you may care the 'team' that will serve as a chronometer Ao invés de for x in range(0, 1000): print("1 segundo") Nós podemos usar: import time for x in range(0, 1000): time.sleep(1)…
-
0
votes6
answers65891
viewsA: How to convert a string variable to int?
You must define which type of your variable, in Python is no different and the types are: int = número inteiro float = número decimal str = texto para o seu problema devemos colocar n1 =…
-
-1
votes2
answers1301
viewsA: LINUX run python script on terminal
You’ll have to go to the terminal and put: DISPLAY=:0 python3 'lugar do diretório'/arquivo.py an example is: DISPLAY=:0 python3 'Área de Trabalho'/arquivo.py…