Variables | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 2

Variables

I don’t know whats wrong with this code... I’m getting an error num1 = float(input(":")) I want the user to input a number that will be stored within the variable num1

26th Feb 2018, 4:39 AM
Sulaiman Bada
Sulaiman Bada - avatar
1 Antwort
0
Try get input first and then convert to float in next line
1st Sep 2022, 5:26 AM
RISHABH
RISHABH - avatar