Computer Science, asked by tharunshettyp143, 2 months ago

write a phython program for e-trailer decision pricing

Answers

Answered by khanmohdumer63
0

Explanation:

Decision making statements in python, helps in controlling your program accordingly. There are the following decision making statements available in Python:

if statement

if-else statement

nested if statement

All the above three decision making statements are described in a single tutorial. Therefore, all the three links goes to a single tutorial page.

Python Decision Making Example

Here is an example, demonstrating decision making statements in python:

# Python Decision Making - Example

while True:

print("Enter 'x' for exit.")

val = input("Enter a number: ")

if val == 'x':

break

else:

numb = int(val)

if numb>0 and numb<100:

if numb>0 and numb<50:

print("You entered number between 0-50.\n")

else:

print("You entered number between 50-100.\n")

else:

print("You

Similar questions