dotfiles/.config/Code/User/History/5b4566d4/aQUp.py
RafayAhmad7548 4f46de8d00 update
2024-09-09 16:59:28 +05:00

11 lines
No EOL
446 B
Python

bookstore = []
num = input('how many books would you like to add: ')
for i in range(num):
title = input('enter book title for book ', i, ': ')
author = input('enter book author for book ', i, ': ')
quantity = input('enter book quantity for book ', i, ': ')
price = input('enter book price for book ', i, ': ')
bookstore.append({title : [author, quantity, price]})
search_title = input('enter a title to search for a book: ')