Amazing-Python-Scripts

Форк
0

README.md

Bus Ticket Generator

Description

The Bus Ticket Generator is a Python script that allows users to generate bus tickets for their journeys. It prompts users to enter details such as passenger name, destination, date of travel, and seat number. The script also provides options to select the type of ticket (one-way or round trip) and the bus service type (seater or sleeper). After entering the details, the script displays a bus ticket with the provided information.

Features

  • Generate bus tickets with passenger details and journey information.
  • Select the type of ticket (one-way or round trip) for your journey.
  • Choose between two bus service types: seater or sleeper.
  • Calculate fare based on the distance and service type.

Requirements

The script requires Python 3.x to run. No external dependencies are needed as it uses only the Python standard library.

How to Use

  1. Make sure you have Python 3.x installed on your system.
  2. Clone this repository to your local machine or download the bus_ticket_generator_script.py file.
  3. Open a terminal or command prompt and navigate to the directory containing the script.
  4. Run the script by executing the following command:
  5. Follow the on-screen instructions to enter the passenger details and select the ticket and service type.
  6. The script will generate and display the bus ticket with the provided information.

Installation

To install the dependencies from the requirements file, use the following command in the terminal or command prompt (Bash):

pip install -r requirements.txt

Have a safe trip!

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.