guna7222 / learning-python- Goto Github PK
View Code? Open in Web Editor NEWThis repo is about learning python from basic to advanced level.
This repo is about learning python from basic to advanced level.
Runtime Error!
avaliable_menu = "enter 'a' to add a movie, enter 'l' to list a movie, enter 'f' to find the movie:- "
movies = []
def add_movies():
title = input("enter a movie name:- ")
rating = int(input("enter a movie rating:- "))
ticket_price = int(input("enter the ticket price:- "))
movie_hero = input("enter a movie hero name:- ")
movies.append({
"title":title,
"rating":rating,
"ticket_price":ticket_price,
"movie_hero":movie_hero
})
def listing_movies():
for movie in movies:
print(movie)
def finding_movies():
find_movie = input("enter a movie name to find:- ")
if movie in movies:
if movie["title"] == find_movie:
print(movie)
menu_prompt = input(avaliable_menu)
while menu_prompt != 'q':
if menu_prompt == 'a':
add_movies()
elif menu_prompt == 'l':
listing_movies()
elif menu_prompt == 'f':
finding_movies()
else:
print("sorry for inconvinence, kindly recheck the values that are entered:) ")
Double letters
The goal of this challenge is to analyze a string to check if it contains two of the same letter in a row. For example, the string "hello" has l twice in a row, while the string "nono" does not have two identical letters in a row.
Define a function named double_letters that takes a single parameter. The parameter is a string. Your function must return True if there are two identical letters in a row in the string, and False otherwise.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.