Assigning Values to Variables Assign a number to the x variable Increment the number Perform

Assignment Chapter 1

Instructions:

  • Use as many code cells as you need to implement the tasks below.
  • Submit a Jupyter Notebook (iPython) doc

(1) Assigning Values to Variables

  1. Assign a number to the x variable
  2. Increment the number
  3. Perform any additional operations (subtractions, multiplications, division, etc).

In [ ]:

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

(2) Finding a Solution Using the Pythagorean Theorem in Python

  1. Create three variables, x, y, & z, and assign them to the values 2,3, & 4
  2. Find the sum of each value squared individually (x^2 + y^2 + z^2).
  3. Print the square root of that value, which is the Pythagorean Distance in 3 Dimensions

In [ ]:

(3) The input() Function

  1. Create a user input interface that prompts the user for their name. Save the input value to a variable.
  2. Greet the user by saying “Hello, NAME” where name is the user’s name.
  3. Ask the user to rate their day, give them a prompt for a number between 1 & 10, 10 being the best day, 1 being the worst day.
  4. Tell the user “Enjoy your RATE day, NAME” where RATE is the number they entered and NAME is their name.

Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER