Seudónimo Seudónimo
  • 22-05-2021
  • Computers and Technology
contestada

PYTHON CODING LANGUAGE (i am a beginner)


Please write a few lines of code.

Here is a scenario:

In order to find the pay, you need to multiply the rate and hours.

*USE VARIABLES

Respuesta :

Eggrollius Eggrollius
  • 22-05-2021
#let the user input data
Hours = int(input(“enter how many hours were worked”))

Pay_rate = float(input(“Enter the pay rate”))

Pay_amount = Pay_rate * Hours
#calculate the wages


Print (Pay_amount)
#print the final answer
Answer Link

Otras preguntas

Can restrictions be put on the amount a candidate can spend on his/her campaign? Why/why not?
How do the mass media spread popular culture across the world?
What are the criticisms of interest groups?
What is the approximate circumference of a circle with a radius of 20 inches? Use π ≈ 3.14. A. 125.6 inches B. 251.2 inches C. 120 inches D. 62.8 inches
Choose the word that best fills-in the blank. His time running this half marathon was _______ compared to his past performances. a. detrimental b. abysmal c. pe
What did Christianity and Judaism emphasize about the individual?
How did Gandhi’s tactics of civil disobedience affect the British?
What efforts have been made to guarantee basic human rights?
Translation of mRNA into segments of tRNA allows which organic molecules to combine to form proteins at the ribosome?
How do totalitarian states and constitutional governments differ?