Computer Science, asked by 2001thakurvedanshura, 4 months ago

Write a python program to write the csv file with the data contains about reservation details of 50 passengers.

Answers

Answered by skpillai636
0

Answer:

import pandas as pd

# we will use pandas module for this

name_of_passengers = []

# creating an empty list

for app in range(50):

n = input("Enter name of passenger - ")

name_of_passenger.append(n)

# now appending the elements by user input

Data = pd.DataFrame(name_of_passengers)

# conventing our list to DataFrame

print("Your Data - ")

print(Data)

# printing our data to check

Explanation:

Answered by nishthas881gmailcom
0

Explanation:

Write a python program to write the csv file with the data contains about reservation details of 50 passengers.

Similar questions