Question: Please help me solve this problem in a starter's python language. I had tried the other answers on Chegg for the same question but didn't
Please help me solve this problem in a starter's python language. I had tried the other answers on Chegg for the same question but didn't work.
num = int(input("Enter size ")) img = np.ones( (num,num,3) ) img[::2,:,1:] = 0
*we need to include this in the program as well. Thank you!
Create a program that creates a image of red and white stripes. Your program should ask the user for the size of your image, the name of the output file, and create a .png file of stripes. For example, if the user enters 10, your program should create a 10x10 image, alternating between red and white stripes A sample run of the program Enter the size: 13 Enter output file: stripes13.png Another sample run of the program: Enter the size: 50 Enter output file: stripes50.png
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
