Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

pls show me the file for what is happening in code. Q1. Create Python program that will: 1. Input a Loop number. 2. Use the

image text in transcribed

pls show me the file for what is happening in code.

Q1. Create Python program that will: 1. Input a Loop number. 2. Use the loop variable as the final range of a FOR Loop, your range initial value is 0. 3. Then print all the numbers in the loop range that will start at number 1...so on, in horizontal display with 1 blank character space. Ex. Loop of 5 1 2 3 4 5 4. Declare an empty array for even numbers. 5. Use FOR Loop with a range of the Loop number, make sure that your range will start evaluating the given loop number at 1. Identify all the EVEN numbers in the given loop number. Use this formula to evaluate EVEN numbers: if (variable of For % 2) == 0: then display the result of all EVEN numbers. Then add all the EVEN numbers into your even numbers array name. 6. Print the result of even numbers array name. 7. Do the same thing with identifying all the ODD numbers from the given Loop number. Use not (!) operator to indicate if the number is not even numbers or the MOD is not equal to 0. Then display the result of all ODD numbers. Then add all the ODD numbers into your ODD numbers array name. Example output (Do not use my given example. Follow only the FORMAT of the output) LOOP Number: 2 Des VW odd number Odd odd oda

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

Question

WHAT IS AUTOMATION TESTING?

Answered: 1 week ago

Question

What is Selenium? What are the advantages of Selenium?

Answered: 1 week ago

Question

=+2 Why did OBI create Centers of Excellence?

Answered: 1 week ago