1. Write an if statement that assigns 0 to x if y is equal to 20. 2. Write an if statement that assigns 0.2 to commission if sales is greater than or equal to 10000. In Python Programming, please.
1. Write an if statement that assigns 0 to x if y is equal to 20. 2. Write an if statement that assigns 0.2 to commission if sales is greater than or equal to 10000. In Python Programming, please.
Chapter6: Looping
Section: Chapter Questions
Problem 7RQ
Related questions
Question
1. Write an if statement that assigns 0 to x if y is equal to 20.
2. Write an if statement that assigns 0.2 to commission if sales is greater than or equal to 10000.
In Python
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
Recommended textbooks for you
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning