- 4
what will come in the place of Questions mark (?)only one letter will come in the place of (?) mark num = input(":") if float(num) ? 0: raise ValueError("Negative")
14 Respuestas
+ 2
I have finally found the Answer of this (<) less than sign will come on the place of (?) mark
+ 8
num = input(":")
if float(num) < 0:
raise ValueError("Negative!")
+ 4
< will be the answer
+ 3
< is the answer
+ 2
==
for checking equality (is that correct word) in if condition you use ==
example (for even numbers)
for i in range (10):
if i%2 == 0:
print(i)
+ 2
num=input(":")
if float (num)<0
raise ValueError("Negative!")
+ 1
< is the answer
+ 1
num=input(":")
if float (num)<0
raise ValueError("Negative!")
проверено 100%
+ 1
1. if float (num) < 0:
2. raise valuerror("negative")
0
< is the answer
0
< is the answer
0
<
0
num = input(":")
if float(num)
0:
ValueError("Negative!")
- 2
code in question is confusing.
you should have properly indented it for better readability.