Question: Program 3: (Please name this program Lab2b_Prog3.py.) You are to create a program consisting of only the following lines of code. You may put these
Program 3: (Please name this program Lab2b_Prog3.py.) You are to create a program consisting of only the following lines of code. You may put these lines of code in any order, and can re-use the lines as frequently as you wish to. There will be more than one way to achieve the result-try to see if you can obtain the output using fewer lines of code. Note: you can only print z to the screen, so you have to build the value of z that you want using the other statements, then print z. X y - - 1 10 1 + NXX > NN + BILL + print (2) For example, say that you wanted to print the number "1" to the screen. The following lines would do the trick: z = 0 X = 1 z += x print (2) Your program should print out the following, when run: 11 28 123 100000000000000000000000000000000 4321 [Note: that's 102]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
