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

num = num % 4
if (num == 1):
print ("A")
elif (num == 2):
print ("B")
elif (num == 3):
print ("C")
elif (num == 4):
print ("D")
else:
print ("E")
If the user enters 5 what is output? _____________

Answers

Answer 1

So, 5 is intered.

Line 1: num will recieve the integer 5

Line 2: Blank

Line 3: num will recieve 1, wich is the remainer of the division of 5 by 4.

Line 4: will return true, since num is indeed equal to 1.

Line 5: Will print "A"

Line 6: Will return false

Line 7: Gets jumped

Line 8: Will return false

Line 9: Gets jumped

Line 10: Will return false

Line 11: Gets jumped

Line 12: Will return false

Line 13: Gets jumped

The only OUTPUT is "A".


Related Questions

When a guest is wearing the medallion, they can order a drink with their smartphone or open their cabin door automatically by standing in front of it. Which emerging technology does Cloud combine with to enable this medallion's features?

Answers

Answer:

The Ocean Medallion.

Explanation:

The Ocean Medallion is a handheld interface that, on boarding a cruise liner, digitally attaches to multiple devices. They could order a cocktail with their mobile or instantly open the cockpit door by walking in front of something while a guest wears the ocean medallion.

What is the purpose of the input() function? (5 points)

1. To add predetermined feedback
2. To determine information about the programmer
3. To display a string literal on the screen
4. To make a program interactive

Answers

Answer:

Pretty sure it's 4. To make a program interactive

Answer:

input function is used to take vali of variable

Have you ever watched Full House? Who is your favorite character and why? EXPLAIN AND ILL GIVE BRAINLIEST!

Answers

Answer:

havent watched it and thanks for this

Explanation:

Write atleast 3 targeted audience or users

Answers

Answer:

Three categories of audience are the "lay" audience, the "managerial" audience, and the "experts." The "lay" audience has no special or expert knowledge. They connect with the human interest aspect of articles.

Explanation:

Lay

Managerial

Experts

what is an example of an absolute cell reference​

Answers

Answer:

Absolute cell referencing uses dollar sign with the row number and column name. When any formula with absolute referencing is copied, the cell addresses used remain the same.

Explanation:


Help ? ?




................

Answers

Answer:

I think it is D

Explanation:

Hope this helps have an amazing day!

What does the Python print() function do?

Completes a calculation
Displays a string value
Sends a document to the printer
Shows a keyword

Answers

Answer:

B. Displays a string value

Answer:

the guy above is right

Explanation:

help please! I need help with this question, it’s very hard.

Answers

Answer:

1. PRINTER

2.Proj

3.USB

4.CAM

It’s Saturday and you’re looking forward to hanging out with friends and having some fun. However, you get two phone calls early in the morning that make you stop and think. First, a friend calls to invite you to an all-day basketball tournament. With tickets, lunch, and dinner, you figure you’ll spend $50. That would put a dent in the money you’re saving for a future goal. Then your neighbors call offering you the opportunity to help paint their apartment. They will pay you $75 for the day of work. What will you do?

Answers

Answer with Explanation:

I would forego the all-day basketball tournament because, clearly, I will be spending so much for just a one-day fun. I'm sure there will be other upcoming basketball tournaments I can attend to. So, I will accept my neighbor's offer of helping to paint their apartment because I will be earning $75 and such offer doesn't come every day. Since I also want to enjoy and hang out with friends, I would call a friend to help me in painting the apartment so we could split the payment, which means both of us will have $37.5. In this case, I will not only earn money on Saturday but will also get to enjoy the company of my friend.

Question #1
Dropdown
You entered the following line of code in IDLE.
>>> guess = input("Enter a guess: ")
This is the result.
Enter a guess: 2
What data type is the variable guess?
string
int
float

Answers

Answer:

int

Explanation:

Here is the input:

"Enter a guess: 2"

The input is the number. The type of variable for whole number (number without a decimal point) is integer, or int in short form.

If the input would be:

"Enter a guess: Hello"

Then the type of variable would be string, because it's a text input.

And if the input would be:

"Enter a guess: 1.5"

Then the type of variable would be float, because it's a number with a decimal place.

In the variable guess the type of data type is int. The correct option is B.

What is a data type?

A variable's data type and the kinds of mathematical, relational, and logical operations that can be performed on it without producing an error are classified as data types in programming.

Integral, Floating Point, Character, Character String, and Composite types are the five basic kinds of data types that are recognised by the majority of current computer languages.

Each broad category also includes a number of particular subtypes.

The most common integer data type in SQL Server is the int data type. When integer values may be larger than what the int data type can handle, the bigint data type is meant to be used.

Thus, the correct option is B.

For more details regarding data type, visit:

https://brainly.com/question/14581918

#SPJ5

give another term for searching data in database​

Answers

Answer:

wmeme

Explanation:

kmemeemsjsjsjnssnnssnsnsnsns

What is the missing line?

>>> myDeque = deque('math')
_____
>>> myDeque
deque(['m', 'a', 't'])


>>> myDeque.clear()

>>> myDeque.clear()

>>> myDeque.popleft()

>>> myDeque.pop()

Answers

Answer: i think it is >>> myDeque.clear()

The missing line >>> myDeque = deque('math') >>> myDeque.clear() >>> myDeque deque(['m', 'a', 't']). The correct option is B.

What are coding variables?

A variable is a type of data storage in a computer program. Consider a variable to be a container, and its name to be the label on the container, indicating what is within.

Variables are used in coding and programming to assist programmers in understanding, remembering, and applying program information. A variable is anything that may be altered.

Variables are used in computer programming to store information that may change and can be utilised later in the program. In a game, for example, a variable could be the player's current score; if the player gained a point, we would add 1 to the variable.

Therefore, the correct option is B. >>> myDeque.clear().

To learn more about coding variables, refer to the link:

https://brainly.com/question/27935882

#SPJ5

what is reddits nickname

Answers

Answer:

the front page of the internet

Explanation:

Answer:

I don't know

Explanation:

I just don't know

Which of the following could not go on a resumes for a position in the fashion and interior design field?

a) favorite fashion designer

b) volunteer positions

c) participation in school activities

d) relevant class is taken

Answers

Answer: I believe it would be your favorite fashion designer, because it just seems irrelevant...   :)

100 POINTS!! Help me out please I need help with this!!

Answers

wa- im lost 2. i need that answer 2.

You want to use the randrange() method. Which line will allow you to enter the following code in IDLE?

>>> randrange(10,20,2)
10
>>> randrange(1,9)
2

from math import randrange

from random import randrange

from randrange import math

from randrange import random

Answers

Answer:

From random import randrange

Explanation:

If you get the answers to questions right, please add them to future other questions.

A person wants to use the randrange() method. The line that allows the person to enter the following code in idle is from random import randrange. The correct option is b.

What is randrange() function?

To produce a random integer between the ranges indicated in its parameter, use the randrange() function. Starting number, stop number, and width are the three inputs that can be utilized to skip a number in the range.

The function generates random dice rolls and adds them to the array while looping the specified number of tries. The original array and the sum that appeared the most frequently are then printed.

Python provides a function named randrange() in the random package that can produce random numbers from a given range while still enabling spaces for steps to be included.

Therefore, the correct option is b. from random import randrange.

To learn more about randrange() function, refer to the link:

https://brainly.com/question/23088177

#SPJ2

The first commercial computer was developed by *

Microsoft
Apple
IBM
Intel

Answers

Answer:

Microsoft

Explanation:

Microsoft is the first ad

answer♡

microsoft, i think.

Q.1)why do we use computers models. give some real life examples

Answers

To generate a better understanding of the things around us

Answer:

to understand what??is going on world and in community or in society i think it help you


30 POINTS! ANSWER ASAP:
Type the correct answer in the box. Spell all words correctly.
Two students measure the dimensions of a single-storey structure. One takes measurements from the outside, while the other takes
measurements from the inside. The students discover that their measurements for the height of the wall vary. The dimensions of the height of
the walls are greater when measured from the outside than when the same walls are measured from the inside of the structure.
What is the explanation for this difference in wall height?
The walls have a greater dimension in height when measured from the outside of the structure because of the presence of a _______

Answers

Answer:

roof

Explanation:

please help me guys
...
.

Answers

Answer:

An information 'source' can be categorized by the type of information it contains

Explanation:

An information source is the point of origin of a person's information or where a person's information comes from, and that tells the person about a subject or gives knowledge on a topic or subject knowledge to a person

Information sources can be either a primary source or a secondary source

The type of information sources can be categorized by the type of questions it answers or which depends on the type of information it contains

The types of information sources includes;

1) The internet

2) Databases

3) Newspaper

4) Encyclopedias

5) Books

6) Catalog in a Library

Therefore, we have that an information 'source' can be categorized by the type of information it contains

4.2.10: Multiplication Table: Create a program using a for loop which will print out the 4’s times table through 10.

Answers

I included my code in the picture below. Best of luck.

How can sound improve you production

Answers

Answer:

it turns your production to a better project because Music helps with everything

Explanation:

How can you use the Address Book to address an email message? Use the drop-down menus to complete the sentences. 1. Type an email contact in the To bar and choose from the options. 2. Click in the ribbon to open the Global Address List.

Answers

Answer:

1. AutoCorrect

2. Address book

Explanation:

stan bts ?

Answer:

1. auto correct

2. address book

Explanation:

Answer will be marked brainliest

answer fast

you'll get points too


How much does it cost for a laptop screen repairment in UAE?

This type of damage is what im referring to

Answers

Answer:

Normal laptop screen repair services cost AED 350 to AED 950 i think...

Can you create a Java program perform the following ?

The main() program is to be used for input and output unless specified.
Use appropriate input and out messages and comment your code.
Create user-defined method: calculate() which takes 2 integers and
a character (+, -, / and *) as parameters and return respective result
of the operation on these parameters.
Create user-defined method rem() which takes 2 integers as
parameters from the main() program and prints the output without
returning any value.

Answers

Answer:

Yes I can and tht problem is correct

Sean is a lineman who is always on call to travel whenever there is a natural disaster. He has recently been called to help repair downed power lines for those who have been affected by a hurricane. What Energy cluster pathway does Sean work in? Environmental Resources Energy and Power Technology Telecommunications Plant Systems

Answers

Answer:

Energy and Power Technology

Explanation:

Energy and Power Technology is a field in engineering that typically deals with generation, transmission and distribution of electric energy to the end users. This energy are usually transmitted and distributed through the use of overhead cables running from the point of generation to the location of the end users.

Natural disasters such as hurricane, tornadoes, earthquake, etc., are capable of destroying the power lines (cables) as they are usually hung on poles.

In this scenario, Sean is a lineman who is always on call to travel whenever there is a natural disaster. He has recently been called to help repair downed power lines for those who have been affected by a hurricane. Therefore, the Energy cluster pathway that Sean works in is Energy and Power Technology.

how many bits would be needed if there is 15 students in the class

Answers

Answer:

Bits??

Explanation:

What software could i use to create music like Aphex Twin?

Answers

Answer:

One choice would be a midi controller and software: midi controllers, make sure you find one thats in your budget, and that it comes with software called a DAW. Lots of electronic producers use a daw called ableton live, and there's a lot of helpful resources online about it.

Explanation:

I know nothing about the subject but I found a discusion of it on reddit also Aphex Twin has uploaded a video showing how his track 'Vordhosbn' was made using now discontinued tracking software PlayerPro.

(I WILL GIVE BRAINLIEST) Which steps will delete an appointment?

left-clicking on the appointment and hitting delete on the keyboard
double-clicking on the appointment and hitting delete on the keyboard
right-clicking the Calendar folder and hitting delete on the keyboard
clicking the Calendar folder and hitting delete on the keyboard

Answers

Answer:

right clicking should be your answer

Please Help. Nobody Does!!! will give brainliest and 50 points
1. What is step one in the digital file organization process?

2. What is rule number one?

3. What is rule number two?

4. What is the obvious advantage to rule number two?

5. What is the tree structure?

6. What are two main ways to organize your files?

7. How should you name your files?

8. What is cloud storage?

9. What are some different cloud storage software?

10. What is the importance of backing up your computer?

Answers

Answer:  Use the Default Installation Folders for Program Files,

Explanation:

Other Questions
what are the three impacts of the enlightenment? When you draft to focus your perspective, you are _____.A. asserting an opinionB. circling important itemsC. focusing on the momentB. making statements Extracurricular activities require kids to play sports.true or false the data in the table shows the lengths of some pieces of carpet that Justin has. he wants to make a dot plot to show the data. how many dots will Justin place above the 3 1/2? Determine whether each ordered pair is a solution to the inequality x+y Which of these is a source of evidence for the plate tectonics theory?the fit of the continentsBthe speed at which Earth rotatesCthe strength of earthquakesDthe current climate Read the prompt, and type your response in the space provided.In the article, Joy Harjo Is the First Native American Poet Laureate, a central idea is that Joy Harjo wants to introduce Native American poetry to a larger audience to encourage respect for others' values. Use details from the text to explain how those details convey the central idea. SOMEONE HELP PLEASE! She said "is it raing now?" Find the fraction : [tex] a)\frac{5}{6} of \: 180 \: m[/tex][tex] b)\frac{2}{8} of \: 112[/tex] What condition influenced the origins of humanism?the need to obey the teachings of the Catholic Churchthe need to cure diseases, such as the bubonic plaguethe need for advancements in the arts and sciencesthe decline of religious participation I don't want any jokes.I want actual answers Factor 49z + 28. Write your answer as a product with a whole number greater than 1. Please help me ill give u Brainlyest FOR MATH ITS DUE TODAY What fraction is equal to 75% of [tex]\frac{1}{2}[/tex] Using complete sentences, explain how the Chinese communists were treated under the rule of Chiang Kai-shek.What was the Long March, and what were its results? Find the nth term of 2,5,10,17 fastest right answer=crowned!! Keeping an open mind is necessary to show ______.a.willingness to learnb.self managementc.loyaltyd.Willingness to get things done Better Control, higher security, and privacy can be achieved through which type of cloud deployment model i need a short narrative poem for english.