May-19-2024, 02:12 AM
(This post was last modified: May-19-2024, 02:19 AM by ebn852_pan.)
x = 2 x = str(x) print("Years on the force is " + x)Years on the force is 2 #Casting. 2 is not string but a int. Python sees this as a string or int? Never mind. I got it. x = str(2) is a conversion to string from an integer. So you put a string on the inside of print.
Programs are like instructions or rules. Learning it gets us closer to a solution. Desired outcome. Computer talk.