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") | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 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")

17th Aug 2016, 9:17 AM
Blackhat
Blackhat - avatar
14 Answers
+ 2
I have finally found the Answer of this (<) less than sign will come on the place of (?) mark
17th Aug 2016, 12:59 PM
Blackhat
Blackhat - avatar
+ 8
num = input(":") if float(num) < 0: raise ValueError("Negative!")
26th Oct 2018, 3:07 PM
Houcem Eddine Aouissaoui
Houcem Eddine Aouissaoui - avatar
+ 4
< will be the answer
17th Aug 2016, 1:11 PM
ritik tiwari
ritik tiwari - avatar
+ 3
< is the answer
20th Aug 2016, 3:39 AM
Biswajit Samal
Biswajit Samal - avatar
+ 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)
17th Aug 2016, 11:35 AM
Josip Komljenović
Josip Komljenović - avatar
+ 2
num=input(":") if float (num)<0 raise ValueError("Negative!")
19th Sep 2019, 11:13 AM
Nguyen Thi Thu Hien
Nguyen Thi Thu Hien - avatar
+ 1
< is the answer
16th Jun 2017, 6:58 AM
Fekadu Kassa
Fekadu Kassa - avatar
+ 1
num=input(":") if float (num)<0 raise ValueError("Negative!") проверено 100%
12th Apr 2020, 8:04 PM
Карасева Ольга Сергеевна
+ 1
1. if float (num) < 0: 2. raise valuerror("negative")
2nd Mar 2021, 3:12 PM
v manojbabu
v manojbabu - avatar
0
< is the answer
3rd Aug 2019, 5:24 AM
GYANENDRA PAL SINGH
GYANENDRA PAL SINGH - avatar
0
< is the answer
14th Jul 2020, 9:30 AM
Oscar
0
<
1st Oct 2020, 12:27 PM
Prasannakumar naik
Prasannakumar naik - avatar
0
num = input(":") if float(num) 0: ValueError("Negative!")
10th Jul 2021, 1:53 AM
Bimsara Senavirathna
Bimsara Senavirathna - avatar
- 2
code in question is confusing. you should have properly indented it for better readability.
18th Aug 2016, 4:27 AM
Amit Gupta
Amit Gupta - avatar