+ 1

please

Can someone teach me this lesson? i still can't get it. thanks

20th Aug 2016, 7:50 AM
Adonay Cahya P
Adonay Cahya P - avatar
2 ответов
+ 4
type-conversion is used to change strings to integers/floats or change floats/integers to strings. Why use this? reason 1) to change user input (wich is a string) to numbers. reason 2) being able to add numbers to strings to didplay them. for instance if you want to display a score. Hoe to use? str (number) # makes a string of everything inside () int (string or float) # makes integer of everything inside () float (str or integer) #makes float of everythin in ()
20th Aug 2016, 8:47 AM
Tom Post
Tom Post - avatar
27th Jan 2017, 12:58 PM
Rogers Cristo
Rogers Cristo - avatar