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
____ [38]
3 years ago
7

Write a program that asks the p34won to enter their grade, and then prints GRADE is a fun grade. Your program should repeat thes

e steps until the user inputs I graduated
Computers and Technology
1 answer:
andrew-mc [135]3 years ago
8 0

Answer:

Following are the code to this question:

def fun():#defining a method fun

  while True:#defining a while loop  

      g = input("Enter your grade: (I graduated) ")#defining variable g for input value

      if g == "I graduated":#defining if block to check string value

          return 0#return  

      print("{} is a fun grade".format(g))#use print method to print string value  

fun()#calling the method

Output:

Enter your grade: (I graduated) 1st

1st is a fun grade

Enter your grade: (I graduated) 2nd

2nd is a fun grade

Enter your grade: (I graduated) I graduated

Explanation:

In the given python code, a method "fun" is defined, and inside the method, a while loop is defined, which uses a variable "g" for input value from the user-end.

In the next step, if block is defined to check string a value and return a value 0, and use the print method to print the given value, and call the above method fun.  

You might be interested in
Cans someone pls help me to do edhesive 2.5 code practice
Step2247 [10]

Answer:

Xjenwbsjhdbee

Explanation:

Shxbebwhddbd

4 0
3 years ago
THIS IS PYTHON QUESTION
frozen [14]

Answer:

ok

Explanation:yes

4 0
3 years ago
What is defined as a set of machine-readable instructions that directs a computer's processor to perform specific operations?
maria [59]
An executable, a program.
5 0
4 years ago
Describe how computer simulations have helped to improve mathematical models and the significance they play in developing soluti
adelina 88 [10]

Answer:

Kindly check explanation

Explanation:

Simulation means the act of using computer programs to generate a replica of real world or intended rela life application which are being tested, monitored and adjusted over time. Simulated models have played a huge role in developing solutions that have been built and refined by these simulation softwares such that it is much more easier to test these models before coming to make a real life match for it. This often save cost and offers a faster way of building models as there is no need for physical coupling before generating the model. In filed such as health, simulation models of body parts and other fragile areas can be made withoutvthe need for a real human during testing or building.

7 0
3 years ago
You have set up remote desktop for the company server running server 2008 so that your users can RDP in from their XP workstatio
Dominik [7]
Remote access could be disabled on the server or the users are connected to the right network.
4 0
4 years ago
Other questions:
  • Write a program that asks the user to enter a number within the range of 1 through 10. Use a switch statement to display the Rom
    13·1 answer
  • Why are high-quality transformers wound with large diameter wire?
    8·1 answer
  • Individuals and businesses have concerns about data security while using Internet-based applications. Which security risk refers
    13·1 answer
  • I have python homework and I’m struggling with it
    7·1 answer
  • Asymmetric key encryption combined with the information provided by a. certificate authority allows unique identification of the
    8·1 answer
  • What is a web browser​
    9·1 answer
  • Please help me with these questions please
    15·1 answer
  • Project: Digital Media and Business
    9·1 answer
  • In C Coding, print either "Fruit", "Drink", or "Unknown" (followed by a newline) depending on the value of userItem. Print "Unkn
    10·1 answer
  • When using a self-contained recovery device on a cfc, hcfc, or hfc system with an operating compressor, technicians must?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!