1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Brut [27]
2 years ago
10

Write a program that prints the numbers 1 - 50. If the number is even print the word 'EVEN!' next to it. If the number is odd pr

int the word 'ODD!' next to it.
Computers and Technology
1 answer:
mamaluj [8]2 years ago
4 0

In python 3.8:

for x in range(1,51):

   print(str(x)+" EVEN!" if x %2==0 else str(x)+" ODD!")

This works for me. Best of luck.

You might be interested in
A production house needs an operating system that captures, saves, and generates information within a specific time. Which type
bearhunter [10]
Windows and linux are best in my opinion! Linux is not used by many people but a lot of apps can't be used for linux so best is to use windows. But Mac is not bad too. Hope I helped and have a nice day!
4 0
3 years ago
A binary search function is searching for a value that is stored in the middle element of an array. How many times will the func
Ganezh [65]

Answer: 1 time.

Explanation:

  • A binary function is also known as a half-interval search is a search algorithm to find the position of a given element x within a well-sorted array [].
  • Binary search compares the target value to the middle element of the array.
  • It ignores half of the elements just after one comparison.
  • it compares x with the middle element.

So, the function read an element <u>one time</u> in the array before finding the value.

3 0
3 years ago
Laying on the lawn wondering where the summer's gone marshmallow clouds keep drifting by
nevsk [136]
Umm what?  uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
8 0
3 years ago
Lucas is taking an algebra class with many detailed steps. Which note-taking method would be best for this class?
podryga [215]

Answer:

outlining

I really do hope this works !

8 0
3 years ago
Read 2 more answers
Data for which there is temporarily no Room in ram is diverted to where on your computer?
vlada-n [284]
If there isn't any room in the RAM (Random Access Memory), the program that will have the least affect on the PC will close.
Hope this helped
8 0
3 years ago
Other questions:
  • How many keywords are there in C programming language
    8·1 answer
  • Technician A says that the last step in the diagnostic process is to verify the problem. Technician B says that the second step
    12·1 answer
  • Your computer is crashing on a regular basis. Which of the following is an operation available to the user that should help rese
    6·2 answers
  • Which technology can allow a single ground-based telescope to achieve images as sharp as those from the Hubble Space Telescope?
    7·1 answer
  • An organization is building a new customer services team, and the manager needs to keep the tream focused on customer issues and
    13·1 answer
  • Write a C++ program that computes an approximation of pi (the mathematical constant used in many trigonometric and calculus appl
    15·1 answer
  • When you open a browser window, it open in a _____. <br> a. fieldb. folderc. menud. window?
    7·1 answer
  • Create a Divisible application that displays a random integer between 1 and 100 and displays appropriate messages stating whethe
    5·1 answer
  • You ping a host on the internet to check for connectivity. Your ping times out, and you get no response. What is most likely the
    8·1 answer
  • Compared with other PC operating systems, the Linux-based operating systems:
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!