Question
Answer questions 1 and 2 in the text editor of this lab. (No coding, no file submission) 1. In a Python program, what would be
Answer questions 1 and 2 in the text editor of this lab. (No coding, no file submission)
1. In a Python program, what would be an appropriate name and an appropriate datatype for variables that store
the price,
the colour,
the waist size, e.g. 28, 30, 32, etc. o whether available online
of a pair of pants?
2. Assume the values for x="house", y="boat" and z="ha". What is the result of each print statement? Which ones do not work, and why?
print(xty)
print(z*3)
print(z*)
print(x+2)
print(y+"2")
For each of the following programs,
start your code with three comment lines explaining what your program does, your name as the author, and today's date.
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