Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

complete in IDLE sk 1: Printing Messages 1. Open a new Python file in the Python IDE (IDLE) that you installed in the first lab,

complete in IDLE
image text in transcribed
image text in transcribed
sk 1: Printing Messages 1. Open a new Python file in the Python IDE (IDLE) that you installed in the first lab, and then name it "print_input_variables.py." 2. Write a program that prints the following messages: a) "Hello, [Your Name]!" (Replace [Your Name] with your actual name) b) "Welcome to the Python Programming Assignment." c) "Let's get started!" sk 2: Receiving User Input 1. Extend your existing program to ask the user for their age. 2. Store the user's input in a variable called age. 3. Print a message that includes the user's age. For example, "You are [age] years old." sk 3: Basic Mathematical Operations 1. Create three variables num1, num2, and num3, and assign them integer values of your choice. 2. Calculate the sum of the three numbers and store it in a variable called sum_result. 3. Calculate the average of the three numbers and store it in a variable called average_result. 4. Print the sum and average with appropriate messages. sk 4: Using Comments 1. At the top of your script (program), add comments containing the programmers name (you), the date, and a multiline comment describing what the program does. 2. Review your code from Tasks 1,2, and 3. 3. Add comments to explain each step of your code's logic and purpose. 4. Use both single-line comments (\#) and multiline comments ('"' '"')

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions