I
I
Ivan Demianov2020-09-03 17:33:40
Python
Ivan Demianov, 2020-09-03 17:33:40

Why does it say invalid syntax when I enter a colon?

Why does my program write invalid syntax with a colon?
The code:

import time
print ("Вітаємо вас у програмі VS TIMER! Введіть скільки ви хочете чекати: ")
min = int (input ("Хвилин: "))
sec = int (input ("Секунд: "))
int (timel = ((min)*(60))+(sec)) 
def Timestop:
    time.sleep(1)
    int (time = +1)
    print (time)
for count in range(timel):
    Timestop

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Shvedov, 2020-09-03
@Vanushka1102

def Timestop():
  ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question