print("Please insert your age")
age = int(input())
if age > 50 and age < 80:
print("Working okay")
else:
print("Not valid")
print("Please insert your age")
age = int(input())
if age > 50 and age < 80:
print("Working okay")
else:
print("Not valid")
In computer science and programming, an exception is similar to an error except that unlike errors, exceptions are normally (but not always) recoverable from. Exceptions tend to change the flow of a program whereas errors tend to crash the program.
A program is written to take in test scores in percentages between 1 and 100.
average = mark1 + mark2 + mark3 / 3
average = (mark1 + mark2 + mark3) / 3
And
and Or
and getting them muddled up. The other very common cause for logic errors is with >
and
<
, as well as >=
and <=
.Pick up to 4 key words and provide a description for them.
Logic error
Runtime error
Normal test data
Extreme test data
Syntax error
Exceptional test data
Apply a filter: