Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 #13936

Open
@ayyanagoud12

Description

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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /