Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I am trying to understand python time (mainly so I can get the program to wait). When I run these 3 lines:
while True:
time.sleep(1)
print("BREAK")
I get the error:
NameError: name 'time' is not defined
What is the problem?
simply type import time before your code, this will fix the problem.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 days ago.
Improve this question
AttributeError: module 'virtualenv.create.via_global_ref.builtin.cpython.mac_os' has no attribute 'CPython2macOsArmFramework'
I'm facing this error.
I tried different solutions from google but not getting a better result.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 days ago.
Improve this question
name_error
The "match is not in a def function but in a conditioned statement, I don't understand why I'm get the error
I expected it to work perfectly
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I tried a basic while-loop in Python 3.8 but I always get a syntax error. Anybody know why?
I tried Notepad++ but when I write the loop, Python doesn't run
i = 1
while i <= 5:
print(i)
i += 1
This works in PyCharm, looking at the image it seems that you wrote the if statement
and the print() on the same line. Which also gave me an error.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
I made the left file to import from right
but I don't know why I got this error: see image
Instead of __int__, use __init__.
The Python class tutorial is a good syntax reference.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
When module openpyxl was imported, I want to get the highest row. Then it turned out to be an Error.
The error speaks for itself, max_row is not callable.
# do This
print (sheet.max_row)
# instead of
print (sheet.max_row())