- Given 2 variables
first_nameandlast_name, write a program that creates a new variablefull_nameand 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 ofagein 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 oftemperaturein the following format:The temperature is 20.3 degrees. What type of data type is the value oftemperature? - Using
temperaturevariable, create a new variable calledis_hotand 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.
generated from PythonADI/homework1
-
Notifications
You must be signed in to change notification settings - Fork 8
PythonADI/python-121-assignment-1-homework1
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
python-121-assignment-1-homework1 created by GitHub Classroom
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published