Python icon indicating copy to clipboard operation
Python copied to clipboard

program for stimulate bus ticket booking system i learn.... python using loop in whileloop using #if and #else and input after write this program it gives more confidence to grow up, so you also try once #python #programminglanguage #engineering_in_kannada @skill_developer28 Ayyana P Goud

Open ayyanagoud12 opened this issue 2 months ago • 2 comments

available_seats = 8

while available_seats>=0: booking= input("do you want seat in bus (yes/no): ")

if booking =="yes":
    available_seats-=1
    print(f"remaining seats in bus {available_seats}so hurry up!")

else:
    print("no booking made")
    

if available_seats==0:
            print("all seats are booked")
            break     
        
print("Thank you for visit")
             
 

ayyanagoud12 avatar Nov 20 '25 16:11 ayyanagoud12

Looks like a mistake.

@ayyanagoud12 what issue do you want to address with your code example?

stevleibelt avatar Nov 21 '25 08:11 stevleibelt

Can you assign this issue to me? I want to solve it for a uni project i have! Thank you very much!We can talk more specifically about what exactly you want me to do

Giannis-dot avatar Nov 27 '25 19:11 Giannis-dot