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
tekilochka [14]
3 years ago
8

In Python, to assign a value to a variable, an equal sign must follow the variable name.

Computers and Technology
1 answer:
Eva8 [605]3 years ago
3 0
ITSSSSSSSSSSSSSSSSSSS true
You might be interested in
____and___ are the two major techniques involved in green computing. //help \\
Rasek [7]
Virtualization and dynamics I think.
7 0
3 years ago
Speakers wanting to control the movement of one slide to the next choose this option.
aleksklad [387]
Change slides by clicking on background.
6 0
3 years ago
Write a Python function that takes as input parameters base_cost (a float) and customer_type and prints a message with informati
PSYCHO15rus [73]

Answer:

Explanation:

Thanks for the question, here is the code in python

The 3rd example given in question is incorrect

inputs: check_amount = 26.99, customer_type = "generous" --> output: Total owed by stingy customer = $16.83 (with $1.53 tip)

the customer type in the above passed is generous but why the output is showing for stingy, I think this is incorrect

Here is the function, I have given explanatory names so that you can follow the code precisely and also used pretty formatting.

thank you !

===================================================================

def print_tip(base_cost, customer_type):

   TAX_PERCENTAGE = 1.07

   STINGY_PERCENTAGE = 0.1

   REGULAR_PERCENTAGE = 0.15

   GENEROUS_PERCENTAGE = 0.20

   check_amount = base_cost * TAX_PERCENTAGE

   tip_amount = 0.0

   if customer_type == 'regular':

       tip_amount = check_amount * REGULAR_PERCENTAGE

   elif customer_type == 'generous':

       tip_amount = check_amount * GENEROUS_PERCENTAGE

   elif customer_type == 'stingy':

       tip_amount = base_cost * STINGY_PERCENTAGE

   total_amount = tip_amount + check_amount

   print('Total owed by {} customer = ${} (with ${} tip)'.format(customer_type, '%.2f' % total_amount,'%.2f' % tip_amount))

print_tip(20, 'regular')

print_tip(26.99, 'generous')

print_tip(14.99, 'stingy')

8 0
3 years ago
Pressing the button on a mouse to activate a computer command is called A. pointing. B. keying. C. entering. D. clicking.
Thepotemich [5.8K]
It is called clicking.
8 0
3 years ago
With excel in edit mode you can edit cell contents directly in the cell. TRUE or FALSE
Y_Kistochka [10]
The answer will be true.
6 0
2 years ago
Other questions:
  • Identify the computer cycle in each of the descriptions below by choosing the answer from the
    12·1 answer
  • When you are almost done with your soup and want to get at the last little bit, how should you do this 2
    5·1 answer
  • Tomahawk Industries develops weapons control systems for the military. The company designed a system that requires two different
    13·1 answer
  • Using Phyton
    9·1 answer
  • What does brainliest do?
    8·2 answers
  • The 'WIMP' environment is much more user friendly,why?​
    11·2 answers
  • Cuando fue creada la aplicación Adobe Photoshop (creada, no lanzada)
    8·1 answer
  • Can anyone please help me out
    10·1 answer
  • Cybersquatters:_________.
    5·1 answer
  • Fill in the blank: the final step of the dhcp discovery process is known as ______. Multiple choice, shuffle.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!