Question: a 1 - Python Basics Fill in the below code cells as specified. Note that cells may utilize variables and functions defined in previous cells;

a1- Python Basics
Fill in the below code cells as specified. Note that cells may utilize variables and functions defined in previous cells; we should be able to reset
the kernal and then Run All the cells to execute your entire notebook and see the correct output.
Part 1. Introductions
Create a variable my_name that stores your name (a string).[1pt]
0
Create a variable my_age that stores your age (as a number).[1pt]
[0]
Define a function make_introduction() that takes in two arguments: a name and an age. The function should return a string of the
format "Hello, my name is {NAME} and I'm {AGE} years old." (replacing {NAME} and {AGE} with the arguments).[6pt]
Note that you can turn a number into a string using the built-in str () function.
Create a variable my_intro by passing your variables my_name and my_age into your make_introduction() function. Print the variable
after you create it.[2pt]
[0]
Create a variable loud_intro, which is your my_intro variable with all of the letters capitalized (use the upper () string method). Print
the variable after you create it.[2pt]
[0]
Create a variable casual_intro by using the replace () string function to replace (substitute) "Hello, my name is", with "Hey, I'm" in your
my_intro variable. You may need to look up the arguments for this function! Print the variable after you create it.[3pt]
a 1 - Python Basics Fill in the below code cells

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!