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
IgorC [24]
3 years ago
8

Assignment 4: Evens and Odds (FIX PLEASE)

Computers and Technology
1 answer:
Ivanshal [37]3 years ago
3 0

n = int(input("How many numbers do you need to check? "))

odd = 0

even = 0

for x in range(n):

   num = int(input("Enter number: "))

   if num % 2 == 0:

       even += 1

       print(str(num)+" is an even number")

   else:

       odd += 1

       print(str(num)+" is an odd number")

print("You entered "+str(even)+" even number(s).")

print("You entered "+str(odd)+" odd number(s).")

This uses a for loop. Sorry about the previous answer. Also, you may want to check the text inside the input functions. For instance, int(input("Enter number: ")) might have different capitalization similar to int(input("Enter Number: "))

You might be interested in
Explain the steps you take when conducting research online to ensure it the source is providing reliable information.
Gala2k [10]

Answer:

Author

Date and

Source

Explanation:

Author – Information on the internet with a listed author is one indication of a credible site. ...

Date – The date of any research information is important, including information found on the Internet. ...

Sources – Credible websites, like books and scholarly articles, should cite the source of the information presented.

5 0
3 years ago
What happens when you double-click a column border??
IrinaVladis [17]
<span>The column width is adjusted to fit the text.</span>
7 0
3 years ago
In a large organization, how do you typically request permission to perform a network change?
kherson [118]

<em>Network change in larger organization follows hierarchy of approval. </em>

<em>Hierarchy of approval will start from the lowest department. The lowest department must prepare a written proposal, stating that there is a need for the network upgrade. Attachments such as proposed price list for the new equipments to buy also comes up with the proposal. Once that all documents are prepared, signatures from approval departments must be gathered. Each signature should be present and complete. </em>

<em> </em>

<em />

3 0
3 years ago
Give an example of how loops are used in programming Kturtle​
tankabanditka [31]

Answer:

Explanation:

KTurtle is an educational programming environment for turtle graphics. It is released under the open-source GNU General Public License and is part of the KDE Project since KDE3. KTurtle includes an IDE and a programming language which is loosely based on Logo and is intended for teaching programming.

5 0
3 years ago
How precisely can you rotate a graphic in a document?
Cloud [144]
Any picture of what our talking about
4 0
3 years ago
Other questions:
  • Los antivirus no son infalibles y en ocasiones pueden darnos :
    10·1 answer
  • How do you change a Word document to an .html file? Save it as a Web page. Save it as a plain text document. Copy it in rich tex
    14·1 answer
  • George has to develop a website for his dad’s cycle shop. He wants to focus mainly on the products and wants the website to have
    10·1 answer
  • Parallel tangent and coincident are examples of what
    13·1 answer
  • Chunking is a good strategy for completing large assignments because it makes the work
    7·2 answers
  • Describe the conventional method of data processing​
    12·2 answers
  • Lol fortnite really going UwU and anime
    12·2 answers
  • Name the default Package of java<br>​
    8·2 answers
  • What allows a programmer to write code quickly and efficiently for an action that must be repeated?
    14·1 answer
  • Classify computer software and write short note about it ?​
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!