- Notifications
You must be signed in to change notification settings - Fork1
ZipCodeCore/PythonFundamentals.Exercises.Part1
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
- Slide deck:https://zipcoder.github.io/curriculum-assets/lectures/python/types-operators-strings-comments/
- Metric Conversion charts:https://www.metric-conversions.org/
- Open Terminal.
- Launch the Python interpreter.
- Print a line that says "Hello Python".
- Exit the Python interpreter.
- Using the Python interpreter, identify the data type for the following values:
- True
- 42
- False
- 1.5
- "Python is fun"
- "3.5"
- Using the Python interpreter, perform the following operations. Be sure to experiment with mixing intergers and floats.
- Addition
- Subtraction
- Multiplication
- Division
- Floor division
- Modulo
- Exponentiation
Create a Python script calledfirst_name_500_times.py. Modify your script according to the instructions below.
- Declare a variable calledfirst_name with your first name as its value.
- Print the value offirst_name to the screen 500 times.
- Save & execute the script.
- Using Terminal, make a copy offirst_name_500_times.py and call itfull_name.py
cp first_name_500_times.py full_name.pyModifyfull_name.py according to the instructions below.
- Comment out the line where your first name was printed 500 times.
- Create a variable calledlast_name with your last name as its value.
- Create a variable calledfull_name whose value is the combination of thefirst_name variable and thelast_name variable.
- Print the value of thefull_name variable.
Create a Python script calledfahrenheit_to_celsius.py
- The script should declare a variable called fahrenheit.
- The script should then convert the value of fahrenheit to celsius.
- The conversion should be displayed on the screeen in the following format:"32 degrees fahrenheit is equal to 0.0 degree(s) celsius"
About
Slides:
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.