Question: Write a statement that outputs variable num _ pens as follows. End with a newline. Ex: If the input is 4 , then the output

Write a statement that outputs variable num_pens as follows. End with a newline.
Ex: If the input is 4, then the output is:
There are 4 pens.
1"' Our tests will run your program with input 4, then run again with input 7.
2 Your program should work for any input, though.
3 num_pens = input()
4
5
6
7
8
 Write a statement that outputs variable num_pens as follows. End with

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!