Here is a conditional expression:
print(x * 3 if x <= 99988 else x * 2)
What will the output be if x = 111?
Here is a conditional expression:
print(x * 3 if x <= 99988 else x * 2)
What will the output be if x = 111?
Create a free account to access the full topic