[Beginner] Spliting input

Bischoop Bischoop at vimuster.net
Thu Jun 25 07:50:36 EDT 2020


I try to split input numbers, for example: 12 so I cant add them, I
tried separated split(' ') but it's not working.
Any ideas how to do this?

*
numb1,numb2=input("enter 1st and 2nd no ").split()
Avg=(int(numb1) + int(numb2)) / 2
print(Avg)
*

--
Thanks



More information about the Python-list mailing list