Question: What does this mean b ) Rewrite the if - else statement using the conditional operator: if ( age > = 1 6 ) :

What does this mean
b) Rewrite the if-else statement using the conditional operator:
if (age >=16):
ticketPrice =20
else:
ticketPrice =10
Q3) Write code for the following:
a) Write a for loop that prints in ascending order all the positive integers less than 200 that are
divisible by both 2 and 3, separated by spaces.
b) Accepts 3 integer test scores for 3 students and print the average for each student. Use while
and/or for loop.
Programming in python please help
What does this mean b ) Rewrite the if - else

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!