-1

code working fine on parrot os but showing error on ubuntu

def count_down(count):
count_min = math.floor(count/60)
count_sec = count%60
if count_min<10:
    count_min=f"0{count_min}"
if count_sec<10 :
    count_sec=f"0{count_sec}"

error shown is

count_min=f"0{count_min}"
                            ^
SyntaxError: invalid syntax
Binson Thangjam
  • 127
  • 1
  • 1
  • 5

1 Answers1

0

problem solved when i ran the file in vs code this error was shown

count_min=f"0{count_min}"
                        ^
 SyntaxError: invalid syntax

i tried python3 main.py and this error was shown

from tkinter import messagebox

ModuleNotFoundError: No module named 'tkinter'

so i did sudo apt-get install python3-tk

and my app is working fine

Binson Thangjam
  • 127
  • 1
  • 1
  • 5