- Given 2 variables
first_name
andlast_name
, write a program that creates a new variablefull_name
and assigns it the value of the full name of the person. Print the value offull_name
. What type of data type is the value offull_name
? - Given the variable
age
, write a program that prints the value ofage
in the following format:You are 20 years old
. What type of data type is the value ofage
? - Given the variable
temperature
, write a program that prints the value oftemperature
in the following format:The temperature is 20.3 degrees
. What type of data type is the value oftemperature
? - Using
temperature
variable, create a new variable calledis_hot
and assign it a boolean value based on the value oftemperature
. Print the value ofis_hot
. What type of data type is the value ofis_hot
? (let's assume that if the temperature is greater than 30 degrees, it's hot) what type of data type is the value ofis_hot
? - Explain the difference between the following data types:
int
,float
,str
,bool
. Give examples of each data type.
-
Notifications
You must be signed in to change notification settings - Fork 0
PythonADI/homework1
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published