Skip to content
Open
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions jarviscli/plugins/a.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
num1 = 15
num2 = 12

# Adding two nos
sum = num1 + num2

# printing values
print("Sum of {0} and {1} is {2}" .format(num1, num2, sum))
22 changes: 22 additions & 0 deletions jarviscli/plugins/hello.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from plugin import plugin
import os

@plugin("infob17120")
def helloworld(jarvis, s):
print("Welcome to the info plugin of Deepshikha Rana roll num B17120. Please select one of the options below:\n[F]ull name // prints your full name\n[H]ometown // prints your hometownFavourite \n[M]ovie // prints your fav movieFavourite \n[S]portsperson // prints your fav sportspersonLaunch \n[P]ython program written by me // launch a (short)// python program")
val = input()
if(val=='F'):
jarvis.say("Deepshikha Rana\n")
elif(val=='H'):
jarvis.say("Haryana\n")
elif(val=='M'):
jarvis.say("Super 30\n")
elif(val=='S'):
jarvis.say("MS DHONi\n")
elif(val=='P'):
os.system("python ~/Jarvis/custom/a.py")
# jarvis.say("Python\n")
else:
jarvis.say("Invalid Input")
"""Repeats what you type"""
# jarvis.say(s)