Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

will rate the answer python Here are instructions for the first lab file assignment due this week. Create a text file using a program like

will rate the answer
python
image text in transcribed
Here are instructions for the first lab file assignment due this week. Create a text file using a program like Windows Notepad or Notepad++. It will have 6 lines of code. In the list below is a description of what should appear on each line. The exercises in this week's ZyBook exercises will give you what you need to know to complete the assignment. Upload your one notepad text file no later than the due date. The file extension can be either txt or.py Line 1: write a line of code that uses the print function to print your name Line 2: assign a value of 18 to a variable named number Line 3: print a string that has "The number is " as the first part and a reference to the variable you created in line 2 (When it prints it will print the string followed by 18 , but using the variable instead of the literal 18) Line 4: print a string that combines two strings that are separated by a comma in the code but show as one continuous string when the print command runs Line 5: write a line of code that asks the user (the one who runs the program) to input their name Line 6: print the name that the user inputs in line 5

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

More Books

Students also viewed these Databases questions