'python code working fine in my parrot os but showing error on ubuntu
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
Solution 1:[1]
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Binson Thangjam |
