6 Answers
New AnswerIn type conversation someone to explain to me literally..with an example Cause I don't get the point..
4/23/2020 12:03:42 PM
Tonny6 Answers
New AnswerSo what you don't understand about type conversion? Like for example Input() returns string so you need to convert it to int type if you want integer input from user
>>> float(input("Enter a number: ")) + float(input("Enter another number: ")) Here is an example can you work this for me
You should do some self search and go through python course ,it's obviously converting a string input into float type, like 4.5 or 4 will simply return string and string works differently from integers or floats ,strings have different methods , so you will want to convert it to float type or whatever type so you can perform the desired operations on it
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message