Here is some work we did in class to help us understand how to use python
In CFU #1 we learned how to create variables, use input, and use print. Using those 3 things we were able to create a program that allows the user to input their first and last name and the computer will output "Hello" with their name.
In CFU #2 we learned how to do basic operations (multiplication, division, additon, and subtraction) using python. The programs prompts the user to enter their name and 2 numbers. The computer will then use those 2 number to run the operations and output what the equations are equal to
In CFU #3 we learned how to do basic operations (multiplication, division, additon, and subtraction) using python. The programs prompts the user to enter their name and 2 numbers. The computer will then use those 2 number to run the operations and output what the equations are equal to
In CFU #1 we learned what import math was which would allow us to use square root, absolute value, exponents, etc. We created a prorgram where the user is prompted to enter 2 numbers. Those 2 numbers will then go through the quadratic formula and then roots will be outputted
In CFU #5 the user had to enter the amount of pennies, nickels, dimes,quarters, toonies, and loonies. The program we created will then calculate how much money the user has.
In CFU #6 we created a program where we used import random and import math to as the user to enter a number and then another number will be randomly picked by the computer. Those 2 number will then go through the operations the program has and ouput the answers to those equations.
In CFU #7 we learned how to create functions. Using those functions the program will run finding the sum and average of the numbers.
In CFU #8 we learned about if-else statement. Using that we created a program that ask the user if they ordered delivery and if they did the cost and the cost per person.
In CFU #9 we created a program that ask the user how many times they want to roll the dice. For every round a random number will be picked and the user has to guess the number.
In CFU #10 the program uses import random to generate a random number. The user then has to guess the number that was generated.
In CFU #11 the program prompts the user get to pick what function they want to run. Once they input it the function will then run.
In this program the user get to pick what version they want. Version 1 allows the user to guess the password infinite times. Version 2 allows the user 3 guesses
In CFU #1 we learned how to use variables and input. We also learned how to print out variables in a sentence.
In CFU #1 we learned how to use variables and input. We also learned how to print out variables in a sentence.
In CFU #1 we learned how to use variables and input. We also learned how to print out variables in a sentence.
In CFU #1 we learned how to use variables and input. We also learned how to print out variables in a sentence.
In CFU #1 we learned how to use variables and input. We also learned how to print out variables in a sentence.
In CFU #1 we learned how to use variables and input. We also learned how to print out variables in a sentence.