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
jok3333 [9.3K]
3 years ago
8

What is the output of the following code snippet if the variable named cost contains 100? if cost < 70 or cost > 150 : dis

count = 0.8 * cost else : discount = cost print("Your cost is ", discount)
Computers and Technology
1 answer:
DanielleElmas [232]3 years ago
6 0

Answer:

The output is: Your cost is  100

Explanation:

Given

The above code snippet

and

cost = 100

Required

Determine the output of the code

if cost < 70 or cost > 150

The above condition checks if cost is less than 70 or cost is greater than 150

This condition is false because 100 is neither less than 70 nor is it greater than 150

So, the else statement will be executed.

discount = cost

Which means

discount = 100

So, the print instruction will print: Your cost is  100

You might be interested in
What protein is found in hair and nails
Yuliya22 [10]

Keratin is found in both hair and nails.

Hope this helps!

4 0
4 years ago
Read 2 more answers
20 points
Keith_Richards [23]
If the four colors are well -balanced then nothing could be best scheme other than the "Square" as it is it's characteristic

In short, Your Answer would be Option C

Hope this helps!
7 0
3 years ago
It is used to show the program and files that are open.
Ilia_Sergeevich [38]
A
Indeed that’s what it is
5 0
3 years ago
Soldering is a method of
babymother [125]

Answer:

Is a process in which two or more metal items are joined together by melting

Explanation:

: )

4 0
3 years ago
Read 2 more answers
When you ask the database more complex questions using comparison operators, you are conducting a _____?
yulyashka [42]
<span>When you ask the database more complex questions using comparison operators, you are conducting a query.
</span><span>The term "query" denotes  a programmatic statement that is understand by a the DBMS(Database management system) that understands how to access and manipulate data within a database. </span>
7 0
3 years ago
Read 2 more answers
Other questions:
  • Brianna is a multimedia specialist who works for a large fast food chain. What task
    12·1 answer
  • Which of the following is the best definition of a workplace policy?
    13·2 answers
  • What event in the 1970s contributed to the current
    6·2 answers
  • You can use RWA to demonstrate how to do something special on the web, such as displaying articles found on websites that suppor
    15·1 answer
  • Write a program that prompts the user to enter in a postive number. Only accept positive numbers - if the user supplies a negati
    11·1 answer
  • Bobbi owns a protein shake company, which has been trading for 3 years. Her products are stocked in a number of gyms, but the co
    11·1 answer
  • What are some options available in the Spelling and Grammar Checker in word?
    6·1 answer
  • You are responsible for the administration of your Windows Server 2016 DNS server, which is installed on a domain controller as
    8·1 answer
  • Why is it important to write something in the subject line of emails?
    7·2 answers
  • What is the difference between a computer’s RAM and its hard disk?
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!