Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added infob17070 #40

Open
wants to merge 1 commit into
base: cs308
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions custom/hellowold.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from plugin import plugin
import os

@plugin("infob17060")
def helloworld(jarvis,s):
"""Repeats what you type"""
jarvis.say("Welcome to the info plugin of Yash Khanna roll num B17070.\n\nPlease select one of the options below:\n\n[F]ull name // prints your full name\t\t\t\n[H]ometown // prints your hometown \t\t\t\nFavourite [M]ovie // prints your fav movie \t\t\t\nFavourite [S]portsperson // prints your fav sportsperson \t\t\t\nLaunch [P]ython program written by me // launch a (short) // python program\n")
inf = jarvis.input()
if(inf=="F"):
jarvis.say("Yash Khanna")
if(inf=="H"):
jarvis.say("Jhajjar")
if(inf=="S"):
jarvis.say("Kholi")
if(inf=="M"):
jarvis.say("jskds")
if(inf=="P"):
os.system("python /local/user/Desktop/lab7/Jarvis/b17070.py")