Write a program that reads an integer and determines and prints whether it is odd or even.

Answers

Answer 1

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

print(str(num)+" is even" if num % 2 == 0 else str(num)+" is odd")

I wrote my code in python 3.8. Best of luck.


Related Questions

3. A year contains 365 days normally, so on
what number day does Christmas fall on?

Answers

Answer:

359 is December 25 in a 365 day year.

Explanation:

Answer:

For western christian churches, Christmas day always occurs on December 25, though some cultures observe the main celebration on the night prior, Christmas Eve.

Your organization uses a federated identity provider to login to your Oracle Cloud Infrastructure (OCI) environment. As a developer, you are writing a script to automate some operation and want to use OCI CLI to do that. Your security team doesn't allow storing private keys on local machines. How can you authenticate with OCI CLI?

Answers

Answer:

Run OCI session authenticate and provide your credentials

Explanation:

The OCI CLI when in combination with a shell script can be fastly used in the creation of shareable scripts. It uses API keys, private and public scheme as it's default authentication. The command to use is the oci set up keys, to create these keys. Since you cannot store private keys, you run OCI authentication and then you give your credentials

As a sysadmin you will find yourself doing business with a variety of third party vendors which of these are likely to be rented or bought from a vendors

Answers

Answer:

Printing devices

Video, Audio devices

Communication machines

Explanation:

Printing devices - Sysadmin needs this type of devices for print important data and information.

Video, Audio devices - Sysadmin needs this type of devices for better communication and interaction.

Communication(fax) machines - Sysadmin needs this type of devices for written communication and interaction and deals.

Several key people were involved in programming-language development in the 1970s and 1980s

Answers

Answer:

Brian Kernighan and Dennis Ritchie created the C programming language, and Bjarne Stroustrup took it to the next level by creating C++ in the 80's.

Answer:

Bjarne Stroustrup released C++ programming language in the1980s.

Bill Gates and Paul Allen released the first programming language for a personal computer.

Niklaus Wirth developed Pascal to teach programming.

Explanation:

1,3,4

Application software helps run the computer and coordinates instructions with the hardware.
A. True
B. False

Answers

Answer:

A. True

Explanation:

do you agree or disagree with the assertion that edutech transforms teachung and learning ​

Answers

Answer:I agree!

Explanation:

Agree

What is the last usable host IP address on the 192.168.32.9/30 network?

Answers

Answer:

192.168.32.10

Explanation:

HOPE THIS HELPS:)

A business owns a printer but the printer is used for cloud printing purposes. What type of resource is this?

Answers

I’m confused , what are the choices ?

_______and ________ enables computers to communicate and it can pass information between two networks.

Answers

Answer:

Internet Protocol and Transmission Control Protocol        

Explanation:

Internet protocol, which is also known as IP and Transmission Control Protocol, which is also known as TCP are the two important protocols that enables the computers to communicate various information and data and allow it to pass between two networks. It allows computers to connect to each other.  They are developed by Bob Kahn and Vint Cerf.

Suppose a webpage contains a single text field. We want to make the page such that a user can immediately start typing in the text field without clicking on it. What is correct way using?
1. .
2. .
3. .
4. Can't be done with only HTML5, need help of Javascript or something else.

Answers

Answer:

The answer is "Option 2".

Explanation:

In HTML5, text inputs use an autofocus attribute, which, when the page is loaded, uses a template to concentrate primarily on text fields. This attribute is a Boolean property that represents the HTML autofocus attribute, showing if the related <select> element will receive an output focus whenever the page loads if it is overruled by the user. An only form-associated entity can have this property specified in a text.

A group of students is performing an investigation to measure how much liquid water is produced from a 10 L sample of snow. What must occur in order for the students to perform this investigation?

Answers

Answer:

the temperature of the sample must change

Explanation:

Write a program that takes a String containing a text using the method signature

String useProperGrammar(String text)
Your method should replace the word ‘2’ with ‘to’ and return the updated text.

For example,

useProperGrammar("can you go 2 the store?")
should return

"can you go to the store?"
This method should also print out the number of grammatical errors that were fixed.

For example, for useProperGrammar("back 2 back 2 back"), the method would also print:

Fixed 2 grammatical errors:
In the main method, ask the user to input a String, and print the results of useProperGrammar using the user input.

Answers

import java.util.*;

public class MyClass {

   public static String useProperGrammar(String message){

       String newMessage = "";

       int count = 0;

       for (int i = 0; i < message.length(); i++){

           if(message.charAt(i) == '2'){

               newMessage = newMessage + "to";

               count ++;

           

           }

           else{

               newMessage = newMessage + message.charAt(i);

           }

       

       }

       System.out.println("Fixed "+count+" grammatical error(s):");

       return newMessage;

   }

   public static void main(String args[]) {

     Scanner scan = new Scanner(System.in);

     System.out.println("Enter a string: ");

     String text = scan.nextLine();

     System.out.println(useProperGrammar(text));

   }

}

I hope this helps.

PLZ HELP THIS ENDS TODAY
During slide show mode, hitting the B key will do which of these?

End your presentation

Blank the screen with black screen

Move back one page

Move to the first page of your presentation

Answers

Answer:

B or Period. Pressing the B key or period key pauses the slideshow and displays a black screen, which you can write on. Press the B or period key again to resume the slideshow.

Answer: It blanks the screen black.

You should use the arrow keys.

Explanation:

I tried it.

which data representation system is based on the digits 0-9 and is mostly easily interpreted In real wrold situations​

Answers

Answer:

Hexadecimal  data representation system is based on the digits 0-9 and is mostly easily interpreted In real word situations​ .

Explanation:

Hexadecimal manages sixteen different figures: most often the numbers 0–9 to describe values zero to nine, and (A–F) to describe values ten to fifteen. The modern hexadecimal system was first launched into the domain of computing by IBM in 1963. An older description, with 0-9 and u-z, was practiced in 1956 by the Bendix G-15 computer.

If you wanted to divide an integer variable by 2, which of the following lines of code would you use? total = int + 2 total = int * N total int / 2 total = int. 2

Answers

Answer:

Yes

Explanation:

Because all answers are intotal (2)

Other Questions
Help please!!!! Ill give brainilest HELPPPPP!!! 50 pts!Escoge el estado del tiempo que describe cada frase. El viento forma un cono y vuelan los techos de las casas.-hay vendaval -hay tornado -esta granizando-hay inundacion-hay deslizamiento-hay huracan What has seriously impacted the sale of digital cameras, dropping sales 81 percent between 2010 and 2016?a massive economic decline the resurgence of Polaroids smartphone cameras laptop cameras Which statement best completes the table?Effects of the Neolithic RevolutionHuman settlements got much biggerPeople ate the same food every day?A. People moved around much more.B. People spent more time hunting,c. People could have specialized jobs.OD. People were less likely to get sick. describe what happens when a chlorophyll a molecule absorbs a photon Raju has some amount saved in his piggy bank. His uncle gave him Rs. 50 as a birthday gift and now Raju has Rs 123 with him.Find how much money he had earlier? ( Write an equation and solve). I NEED AN ANSWER ASAPYou are an ocean explorer who has just found a new creature at the bottom of the sea. As you went to take a picture of it your camera malfunctioned and it swam away. You want to share this discovery but all you have is your memory. Using your imagination explain what that creature looked like so others can know what you found Which statement best expresses the theme of the story?A. TrustB. You are judged by the company you keepC. Liars are not believed even when they speak the truthD.Lying. On a field trip ,there are 3 adults for every 45 students .which graph models a relationship with the same unit rate Which trait is common to both Theravada and Mahayana Buddhism? Dearest Kitty, It seems like years since Sunday morning. So much has happened it's as if the whole world had suddenly turned upside down. But as you can see, Kitty, I'm still alive, and that's the main thing, Father says. I'm alive all right, but don't ask where or how. You probably don't understand a word I'm saying today, so I'll begin by telling you what happened Sunday afternoon.The Diary of a Young Girl,Anne FrankWhat is Annes tone in this passage? Which of the following would lower the levelized cost of energy for a project Anastasia is grocery shopping list is 60% done and she only has 12 items, how many items does she have on the list? Drag and drop each pair of lines into the correct category to indicate whether the pair of lines are parallel, perpendicular, or neither. 1/7x + y = 9; y = -7x y = 3x - 3; 12x - 4y = 12 7y = 2x + 1; 14x + 4y = 12 x - 4y = 18; y = x + 4 3x - 4y = -1; 3y = -4x + 5 Parallel Perpendicular Neither The three phases of alcoholism include all of the following EXCEPT: A cube has a surface area of 600 square meters. What is its volume? A.600 m B.300 m C.100 m D.1000 m Identify the error in the sample annotated bibliography entry. Clinton, Cary. (2015). The Final Years of the War, 1944-1945. Boston, MA: Febrion Publishing. This book describes all of the military conflicts that occurred in Europe during the last two years of World War II. It is useful to me because it provides background information on what territory Germany and the Allies occupied at particular dates, and where they met in battle. This background information is important in helping me understand the role of aerial power in determining the outcome of the war, which is central to my thesis. What type of government does Saudi Arabia have O Direct Democracy O Representative Democracy O Absolute Monarchy Dictatorship Analyze the map below and answer the question that follows.A map of New Zealand's North Island. An arrow points to a river that starts near Auckland, travels south, and ends in the middle of the island.Image courtesy of the CIA World FactbookWhich of the following rivers is shown on the map above?A.the Murray RiverB.the Darling RiverC.the Waikato RiverD.the Sunderland RiverPlease select the best answer from the choices providedABCD What was the Gothic Line?