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
nexus9112 [7]
3 years ago
13

Python problem:

Computers and Technology
1 answer:
KATRIN_1 [288]3 years ago
3 0

print("Think of a number from 1 to 4")

print("Answer S (yes) or N (no) to my questions.")

choice = input("Is the number thought to be greater than 2? ")

if choice == "S":

   choice = input("Is the number thought to be greater than 3? ")

   if choice == "S":

       print("The number thought about is 4")

   elif choice == "N":

       print("The number thought about is 3")

elif choice == "N":

   choice = input("Is the number thought to be greater than 1? ")

   if choice == "S":

       print("The number thought about is 2")

   elif choice == "N":

       print("The number thought about is 1")

print("See you next time!")

This works for me. Best of luck!

You might be interested in
What type of software is used to create letters and papers? ​
S_A_V [24]

Answer:a paper that haven’t been use

Explanation:

8 0
3 years ago
Which of the following is NOT contained on the Slide Show toolbar?
Lostsunrise [7]
B slide button is your answer
3 0
3 years ago
A medical assistant at a local hospital is exploring the Start Menu of his/her computer and various Windows programs/application
Ratling [72]
<span>Five questions that people are most likely to ask about the application are as follows:1. What is the use and function of this application?. 2. Who is this application for? 3. How much does this application cost?. 4. Where can the application been used? and 5. Why should I use this application? </span>
7 0
3 years ago
When does a kernel panic occur? A)when the incorrect serial number is entered during software installation when Dynamic-Ling Lib
vladimir1956 [14]
A Kernel panic can<span> also be caused by errors originating outside kernel space. For example, many Unix OSes panic if the init process, which runs in userspace, terminates.</span>
8 0
4 years ago
Read 2 more answers
Free response: Spot and Fix the Bug Respond to the following questions about your investigation into the bug with the counting g
Pepsi [2]

Answer:

Hello Dear,

The question doesn't have any code in it.

Please elaborate or expedite your question.

Explanation:

Please share the code file which is usually having an extension of .org.

3 0
4 years ago
Other questions:
  • Which protocols are TCP/IP application layer protocols? (choose all that apply)
    5·2 answers
  • What are the role, responsibilities, and required background of the production designer of a film?
    6·1 answer
  • Write a program that lets the user play the game of Rock, Paper, Scissors against the computer. The program should work as follo
    15·1 answer
  • Anyone know how to do point hack​
    9·2 answers
  • /* Write a method called fractionSum that accepts an integer parameter n and
    5·1 answer
  • How do I log into PGCPS?
    14·1 answer
  • What intangible benefits might an organization obtain from the development of an
    5·2 answers
  • How do u mark bralienst
    5·1 answer
  • Terrel is designing and maintaining a web page for a local company. In which career pathways would Terrel be involved?
    9·1 answer
  • Write getfirstroot and getsecondroot to return the first and second roots. return a domain_error is there is no first or second
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!