Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using Python: A comment on the top line of your program containing your name. A comment on the second line containing your section number. A
Using Python:
A comment on the top line of your program containing your name.
A comment on the second line containing your section number.
A comment on the third line containing the date.
A comment on the fourth line containing your email address.
A comment with the lab number and purpose of this lab.
Declare a variable called fname and set this equal to your first name.
Declare a variable called lname and set this equal to your last name.
Declare a variable called age and set this equal to your age.
Write a print statement to display the message: Hello World! to the user.
Write a print statement to display the message:
My name is fname lname. I am age years old.
where you use the variables fname, lname and age to display the values you stored in those variables.
Change the value of the age variable to by writing a new line, not changing the original line where you declare the age variable then,
Output a message to the user thanking them from using your program that includes your first and last name.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started