Why do you need to define release_year?
If i just type “release_year_int = 2012”. This should be enough to know the number 2012 is about the release year. I could say like “print(release_year_int)” and the message would show “2012”.
What am I missing, why make it so extensive by writing another line?
I’m here to help, so during the exercise I was kind of lost but then if we think we are talking with a machine and the machine follows certain protocol you can think of trying answering in the order the machine is asking, after multiple attempts I decided to reply in this way.
I thought runtime was supposed to be used as a decimal number, not as an integer. why show us how to use an_int, and a_float if were not going to define that function in our code?
When we want to concatenate a string with a data type other than a string, we have to use the str() function. str() returns the string version of the object passed into it. You can find more on this function here.
I just want to confirm something: integers and float can be defined as anything right?
I can name my integer: Days of Weeks, balloons in a room, etc. ; and I can name my floats what I want (as long as format it properly): portion of pie eaten, fraction of time of movie watched, etc.
Yes, you can name your variables anything you’d like (of course, there are restrictions and naming conventions, like how variables names cannot start with numbers). You can represent anything you’d like using integers and floats, though of course, it would be more practical to represent things where these data types make sense.
Scanning some of the above posts it seems everyone is using, release_year and runtime as their variable names. This would align with the error message, as well.