diff --git a/chapter-1/file.txt b/chapter-1/file.txt new file mode 100644 index 0000000..88f2961 --- /dev/null +++ b/chapter-1/file.txt @@ -0,0 +1,2 @@ +hello welcome to world of programming! +I am Eva, your personal assistanc. How may I help you today? \ No newline at end of file diff --git a/chapter-1/problem1.py b/chapter-1/problem1.py new file mode 100644 index 0000000..cd2efe6 --- /dev/null +++ b/chapter-1/problem1.py @@ -0,0 +1,34 @@ +print('''Twinkle, twinkle, little star, +How I wonder what you are! +Up above the world so high, +Like a diamond in the sky. +Twinkle, twinkle, little star, +How I wonder what you are! + +When the blazing sun is gone, +When he nothing shines upon, +Then you show your little light, +Twinkle, twinkle, all the night. +Twinkle, twinkle, little star, +How I wonder what you are! + +Then the traveller in the dark, +Thanks you for your tiny spark, +He could not see which way to go, +If you did not twinkle so. +Twinkle, twinkle, little star, +How I wonder what you are! + +In the dark blue sky you keep, +And often through my curtains peep, +For you never shut your eye, +Till the sun is in the sky. +Twinkle, twinkle, little star, +How I wonder what you are! + +As your bright and tiny spark, +Lights the traveller in the dark,— +Though I know not what you are, +Twinkle, twinkle, little star. +Twinkle, twinkle, little star, +How I wonder what you are!''') \ No newline at end of file diff --git a/chapter-1/problem2.py b/chapter-1/problem2.py new file mode 100644 index 0000000..e69de29 diff --git a/chapter-1/problem3.py b/chapter-1/problem3.py new file mode 100644 index 0000000..6448da2 --- /dev/null +++ b/chapter-1/problem3.py @@ -0,0 +1,5 @@ +import pyttsx3 + +engine = pyttsx3.init() +engine.say("Hello, how are you?") +engine.runAndWait() \ No newline at end of file diff --git a/chapter-1/problem4.py b/chapter-1/problem4.py new file mode 100644 index 0000000..7020117 --- /dev/null +++ b/chapter-1/problem4.py @@ -0,0 +1,4 @@ +import os +directory_path = '/' +contents = os.listdir(directory_path) +print(contents) \ No newline at end of file diff --git a/chapter-2/01_variables.py b/chapter-2/01_variables.py new file mode 100644 index 0000000..66f7c56 --- /dev/null +++ b/chapter-2/01_variables.py @@ -0,0 +1,4 @@ +a=int(input("Enter a number: ")) +b=int(input("Enter another number: ")) +c=a+b +print("The sum of", a, "and", b, "is", c,"and type is: ", type(c)) \ No newline at end of file diff --git a/chapter-2/02_datatypes.py b/chapter-2/02_datatypes.py new file mode 100644 index 0000000..d2b7d28 --- /dev/null +++ b/chapter-2/02_datatypes.py @@ -0,0 +1 @@ +xl \ No newline at end of file diff --git a/chapter-2/03_rules_variable.py b/chapter-2/03_rules_variable.py new file mode 100644 index 0000000..e69de29 diff --git a/done/;project 2-guess the nuber.py b/done/;project 2-guess the nuber.py new file mode 100644 index 0000000..9d1e232 --- /dev/null +++ b/done/;project 2-guess the nuber.py @@ -0,0 +1,13 @@ +import random +n=random.randint(1,100) +print("**Guess the number between 1 to 100 **") +a=-1 +guess=1 +while(a!=n): + a=int(input("Enter the number:")) + if(a>n): + print("Smaller number please!") + elif(a x: + print("Smaller PLease!") + count += 1 + elif a < x: + print("Greater number please: ") + count += 1 +print(f"You won the game in {count} attempts and the number was {x}.") diff --git a/done/design.txt b/done/design.txt new file mode 100644 index 0000000..4af1832 --- /dev/null +++ b/done/design.txt @@ -0,0 +1 @@ +None \ No newline at end of file diff --git a/done/employee in microsoft.py b/done/employee in microsoft.py new file mode 100644 index 0000000..ef6a8f8 --- /dev/null +++ b/done/employee in microsoft.py @@ -0,0 +1,15 @@ +class employee: + company="microsoft" + + def __init__(self, name,age): + self.name=name + self.age=age + +p=employee("krishn", 17) +q=employee("yash", 16) +r=employee("chetan", 18) +s=employee("Aditya", 20) +print(p.name,p.age) +print(q.name,q.age) +print(r.name,r.age) +print(s.name,s.age) \ No newline at end of file diff --git a/done/fibonacci.py b/done/fibonacci.py new file mode 100644 index 0000000..ac62ddc --- /dev/null +++ b/done/fibonacci.py @@ -0,0 +1,18 @@ +n=int(input("Enter the lenth of nth series: ")) +def fibonacci(n): + if n <= 0: + return "Incorrect input" + elif n == 1: + return 0 + elif n == 2: + return 1 + else: + return fibonacci(n-1) + fibonacci(n-2) + +def sum(n): + add=(n*(n+1))/2 + return add + +print(f"fibonacci series is:{fibonacci(9)}") +print(f"sum of n natural number is:{sum(n)}") + diff --git a/done/first.py b/done/first.py new file mode 100644 index 0000000..29b5ae1 --- /dev/null +++ b/done/first.py @@ -0,0 +1,41 @@ +n=int(input("Enter the number: ")) +for i in range(1,n+1): + print(" "* (n-i), end=" ") + print("* "* (2*i-i), end=" ") + print(" ") +for i in range(n-1,0,-1): + print(" "* (n-i), end=" ") + print("* "* (2*i-i), end=" ") + print(" ") +for i in range(2,n+1): + print(" "* (n-i), end=" ") + print("* "* (2*i-i), end=" ") + print(" ") +for i in range(n-1,0,-1): + print(" "* (n-i), end=" ") + print("* "* (2*i-i), end=" ") + print(" ") +for i in range(2,n+1): + print(" "* (n-i), end=" ") + print("* "* (2*i-i), end=" ") + print(" ") +for i in range(n-1,0,-1): + print(" "* (n-i), end=" ") + print("* "* (2*i-i), end=" ") + print(" ") +for i in range(2,n+1): + print(" "* (n-i), end=" ") + print("* "* (2*i-i), end=" ") + print(" ") +for i in range(n-1,0,-1): + print(" "* (n-i), end=" ") + print("* "* (2*i-i), end=" ") + print(" ") +for i in range(2,n+1): + print(" "* (n-i), end=" ") + print("* "* (2*i-i), end=" ") + print(" ") +for i in range(n-1,0,-1): + print(" "* (n-i), end=" ") + print("* "* (2*i-i), end=" ") + print(" ") diff --git a/done/greatest number.py b/done/greatest number.py new file mode 100644 index 0000000..2bde90a --- /dev/null +++ b/done/greatest number.py @@ -0,0 +1,13 @@ +n1=int(input("Enter first number: ")) +n2=int(input("Enter second number: ")) +n3=int(input("Enter third number: ")) + +def greatest(n1,n2,n3): + if(n1>n2 and n1>n3): + return n1 + elif(n2>n3): + return n2 + else: + return n3 + +print("gretest number is:", greatest(n1,n2,n3)) \ No newline at end of file diff --git a/done/inch_to_cm.py b/done/inch_to_cm.py new file mode 100644 index 0000000..b375f08 --- /dev/null +++ b/done/inch_to_cm.py @@ -0,0 +1,8 @@ +def con(n): + inch=2.57 + if(n==0): + return 0 + else: + return inch*n +n=float(input("Enter the number: ")) +print("total cm is: ",round(con(n),2)) \ No newline at end of file diff --git a/done/inheritence.py b/done/inheritence.py new file mode 100644 index 0000000..fb2d97b --- /dev/null +++ b/done/inheritence.py @@ -0,0 +1,18 @@ +class twoDarray: + def __init__(self,i,j): + self.i=i + self.j=j + def show(self): + print(f"the vector of 2D Array are: {self.i}i +{self.j}j") + +class threeDarray(twoDarray): + def __init__(self,i,j,k): + super().__init__(i,j) + self.k=k + def show(self): + print(f"the vectors of 3D array are: {self.i}i+ {self.j}j+ {self.k}k") + +a=twoDarray(1,2) +a.show() +b=threeDarray(1,2,3) +b.show() \ No newline at end of file diff --git a/done/method in class.py b/done/method in class.py new file mode 100644 index 0000000..043dbe7 --- /dev/null +++ b/done/method in class.py @@ -0,0 +1,14 @@ +class employee: + lang="python" + salary=12000 + dept="AI" + + def info(self): + print(f"Language is {self.lang}. and salary is {self.salary}") + + def dep(self): + print(f"Department is {self.dept}.") + +harry=employee() +harry.info() +harry.dep() \ No newline at end of file diff --git a/done/module.py b/done/module.py new file mode 100644 index 0000000..8578f03 --- /dev/null +++ b/done/module.py @@ -0,0 +1,8 @@ +def fact(n): + if(n==1 or n==0): + return 1 + else: + return n*fact(n-1) + +n=int(input("Enter the number")) +print(fact(n)) \ No newline at end of file diff --git a/done/multilevel inheritence.py b/done/multilevel inheritence.py new file mode 100644 index 0000000..050b363 --- /dev/null +++ b/done/multilevel inheritence.py @@ -0,0 +1,11 @@ +class chapter: + a=1 +class book(chapter): + b=2 +class index(book): + c=3 + +o=index +print(o.a) +print(o.b) +print(o.c) \ No newline at end of file diff --git a/done/name convertor.py b/done/name convertor.py new file mode 100644 index 0000000..e21d5a8 --- /dev/null +++ b/done/name convertor.py @@ -0,0 +1,203 @@ + +letters = { + 'A': [ + " _| ", + " _|_| ", + " _| _| ", + " _|_|_|_| ", + " _| _|" + ], + 'B': [ + " _|_|_| ", + " _| _| ", + " _|_|_| ", + " _| _| ", + " _|_|_| " + ], + 'C': [ + " _|_|_| ", + " _| _|", + " _| ", + " _| _|", + " _|_|_| " + ], + 'D': [ + " _|_|_| ", + " _| _| ", + " _| _|", + " _| _| ", + " _|_|_| " + ], + 'E': [ + " _|_|_|_|", + " _| ", + " _|_|_|_|", + " _| ", + " _|_|_|_|" + ], + 'F': [ + " _|_|_|_|", + " _| ", + " _|_|_|_|", + " _| ", + " _| " + ], + 'G': [ + " _|_|_|_|", + " _| ", + " _| _|_|", + " _| _|", + " _|_|_|_|" + ], + 'H': [ + " _| _|", + " _| _|", + " _|_|_|_|", + " _| _|", + " _| _|" + ], + 'I': [ + " _|_|_|_|", + " _| ", + " _| ", + " _| ", + " _|_|_|_|" + ], + 'J': [ + " _|_|_|_|", + " _| ", + " _| ", + " _| _| ", + " _|_|_| " + ], + 'K': [ + " _| _|", + " _| _| ", + " _|_| ", + " _| _| ", + " _| _|" + ], + 'L': [ + " _| ", + " _| ", + " _| ", + " _| ", + " _|_|_|_|" + ], + 'M': [ + " _| _|", + " _|_|_|_|", + " _| _|", + " _| _|", + " _| _|" + ], + 'N': [ + " _| _|", + " _|_| _|", + " _| _| _|", + " _| _| _|", + " _| _|_|" + ], + 'O': [ + " _|_|_|_|", + " _| _|", + " _| _|", + " _| _|", + " _|_|_|_|" + ], + 'P': [ + " _|_|_|_|", + " _| _|", + " _|_|_|_|", + " _| ", + " _| " + ], + 'Q': [ + " _|_|_|_", + " _| _|", + " _| _|", + " _| _|_|", + " _|_|_ " + ], + 'R': [ + " _|_|_| ", + " _| _| ", + " _|_|_| ", + " _| _| ", + " _| _|" + ], + 'S': [ + " _|_|_|_|", + " _| ", + " _|_|_|_|", + " _|", + " _|_|_|_|" + ], + 'T': [ + " _|_|_|_|", + " _| ", + " _| ", + " _| ", + " _| " + ], + 'U': [ + " _| _|", + " _| _|", + " _| _|", + " _| _|", + " _|_|_|_|" + ], + 'V': [ + "_| _|", + " _| _|", + " _| _|", + " _| _| ", + " _|_| " + ], + 'W': [ + " _| _|", + " _| _|", + " _| _|", + " _| _| _|", + " _|_|_|_|" + ], + 'X': [ + " _| _|", + " _| _| ", + " _|_| ", + " _| _| ", + " _| _|" + ], + 'Y': [ + " _| _|", + " _| _| ", + " _|_| ", + " _| ", + " _| " + ], + 'Z': [ + " _|_|_|_|", + " _| ", + " _| ", + " _| ", + " _|_|_|_|" + ] +} + +def block_code(name): + + name = name.upper() + rows = [""] * 5 + for char in name: + if char in letters: + design = letters[char] + for i in range(5): + rows[i] += design[i] + " " + else: + for i in range(5): + rows[i] += " " * 8 + for row in rows: + print(row) + +name=input("Enter your name: ") +print(block_code(name)) \ No newline at end of file diff --git a/done/name.txt b/done/name.txt new file mode 100644 index 0000000..27efbf8 --- /dev/null +++ b/done/name.txt @@ -0,0 +1,5 @@ +hello my name is krisnn jatav. +I am AI researcher at Biz4group. + + +reseacher diff --git a/done/name_convert.py b/done/name_convert.py new file mode 100644 index 0000000..c56ee70 --- /dev/null +++ b/done/name_convert.py @@ -0,0 +1,211 @@ + +# Define the alphabet designs +alphabet_designs = { + 'A': [ + " _| ", + " _|_| ", + " _| _| ", + " _|_|_|_| ", + " _| _|" + ], + 'B': [ + " _|_|_| ", + " _| _| ", + " _|_|_| ", + " _| _| ", + " _|_|_| " + ], + 'C': [ + " _|_|_| ", + " _| _|", + " _| ", + " _| _|", + " _|_|_| " + ], + 'D': [ + " _|_|_| ", + " _| _| ", + " _| _|", + " _| _| ", + " _|_|_| " + ], + 'E': [ + " _|_|_|_|", + " _| ", + " _|_|_|_|", + " _| ", + " _|_|_|_|" + ], + 'F': [ + " _|_|_|_|", + " _| ", + " _|_|_|_|", + " _| ", + " _| " + ], + 'G': [ + " _|_|_|_|", + " _| ", + " _| _|_|", + " _| _|", + " _|_|_|_|" + ], + 'H': [ + " _| _|", + " _| _|", + " _|_|_|_|", + " _| _|", + " _| _|" + ], + 'I': [ + " _|_|_|_|", + " _| ", + " _| ", + " _| ", + " _|_|_|_|" + ], + 'J': [ + " _|_|_|_|", + " _| ", + " _| ", + " _| _| ", + " _|_|_| " + ], + 'K': [ + " _| _|", + " _| _| ", + " _|_| ", + " _| _| ", + " _| _|" + ], + 'L': [ + " _| ", + " _| ", + " _| ", + " _| ", + " _|_|_|_|" + ], + 'M': [ + " _| _|", + " _|_|_|_|", + " _| _|", + " _| _|", + " _| _|" + ], + 'N': [ + " _| _|", + " _|_| _|", + " _| _| _|", + " _| _| _|", + " _| _|_|" + ], + 'O': [ + " _|_|_|_|", + " _| _|", + " _| _|", + " _| _|", + " _|_|_|_|" + ], + 'P': [ + " _|_|_|_|", + " _| _|", + " _|_|_|_|", + " _| ", + " _| " + ], + 'Q': [ + " _|_|_|_", + " _| _|", + " _| _|", + " _| _|_|", + " _|_|_ " + ], + 'R': [ + " _|_|_| ", + " _| _| ", + " _|_|_| ", + " _| _| ", + " _| _|" + ], + 'S': [ + " _|_|_|_", + " _| ", + " _|_|_|_", + " _|", + " _|_|_|_" + ], + 'T': [ + " _|_|_|_|", + " _| ", + " _| ", + " _| ", + " _| " + ], + 'U': [ + " _| _|", + " _| _|", + " _| _|", + " _| _|", + " _|_|_|_" + ], + 'V': [ + "_| _|", + " _| _|", + " _| _|", + " _| _| ", + " _|_| " + ], + 'W': [ + " _| _|", + " _| _|", + " _| _|", + " _| _| _|", + " _|_|_|_|" + ], + 'X': [ + " _| _|", + " _| _| ", + " _|_| ", + " _| _| ", + " _| _|" + ], + 'Y': [ + " _| _|", + " _| _| ", + " _|_| ", + " _| ", + " _| " + ], + 'Z': [ + " _|_|_|_|", + " _| ", + " _| ", + " _| ", + " _|_|_|_|" + ] +} + +def convert_to_design(name): + # Convert the name to uppercase + name = name.upper() + + # Initialize a list to hold each row of the final design + rows = [""] * 5 + + # Iterate over each character in the name + for char in name: + if char in alphabet_designs: + design = alphabet_designs[char] + for i in range(5): + rows[i] += design[i] + " " + else: + # Handle unknown characters by adding spaces + for i in range(5): + rows[i] += " " * 8 + + # Print the final design + for row in rows: + print(row) + +# Example usage +convert_to_design("Atul") \ No newline at end of file diff --git a/done/new.copy.file.py b/done/new.copy.file.py new file mode 100644 index 0000000..bd68738 --- /dev/null +++ b/done/new.copy.file.py @@ -0,0 +1,15 @@ + +with open("name.txt","r") as f1: + lines=f1.readlines() +lineno=1 +for line in lines: + if("research" in line): + print("Word found at",lineno) + break + lineno+=1 + + else: + print("Word not found") + + + diff --git a/done/prctice.py b/done/prctice.py new file mode 100644 index 0000000..ba6b658 --- /dev/null +++ b/done/prctice.py @@ -0,0 +1,6 @@ + + +n=int(input("Enter the value: ")) +for i in range(1,11): + f=n*i + print(f) \ No newline at end of file diff --git a/done/replace.py b/done/replace.py new file mode 100644 index 0000000..fd70646 --- /dev/null +++ b/done/replace.py @@ -0,0 +1,9 @@ +word="krishn" + +with open("name.txt","r") as f: + content=f.read() + +contentNew=content.replace(word,"research") + +with open("name.txt", "w") as f: + f.write(contentNew) \ No newline at end of file diff --git a/done/search word.py b/done/search word.py new file mode 100644 index 0000000..106525e --- /dev/null +++ b/done/search word.py @@ -0,0 +1,7 @@ +search="python" +with open("name.txt", "r") as f: + content=f.read() +if(search in content): + print("yes") +else: + print("No") \ No newline at end of file diff --git a/done/shape.py b/done/shape.py new file mode 100644 index 0000000..e0710e5 --- /dev/null +++ b/done/shape.py @@ -0,0 +1,59 @@ +import typing +from typing import Union + + +key = "20AI016" +while password != key: + p: Union[int, str] = input("Please Enter your password.. ") + password = p.upper() +if password != key: + print("Invalide password.") + +letters = { + "A": [" _| ", " _|_| ", " _| _| ", " _|_|_|_| ", " _| _|"], + "B": [" _|_|_| ", " _| _| ", " _|_|_| ", " _| _| ", " _|_|_| "], + "C": [" _|_|_| ", " _| _|", " _| ", " _| _|", " _|_|_| "], + "D": [" _|_|_| ", " _| _| ", " _| _|", " _| _| ", " _|_|_| "], + "E": [" _|_|_|_|", " _| ", " _|_|_|_|", " _| ", " _|_|_|_|"], + "F": [" _|_|_|_|", " _| ", " _|_|_|_|", " _| ", " _| "], + "G": [" _|_|_|_|", " _| ", " _| _|_|", " _| _|", " _|_|_|_|"], + "H": [" _| _|", " _| _|", " _|_|_|_|", " _| _|", " _| _|"], + "I": [" _|_|_|_|", " _| ", " _| ", " _| ", " _|_|_|_|"], + "J": [" _|_|_|_| ", " _| ", " _| ", " _| _| ", " _|_|_| "], + "K": [" _| _|", " _| _| ", " _|_| ", " _| _| ", " _| _|"], + "L": [" _| ", " _| ", " _| ", " _| ", " _|_|_|_|"], + "M": [" _| _|", " _|_|_|_|", " _| _|", " _| _|", " _| _|"], + "N": [" _| _|", " _|_| _|", " _| _| _|", " _| _| _|", " _| _|_|"], + "O": [" _|_|_|_|", " _| _|", " _| _|", " _| _|", " _|_|_|_|"], + "P": [" _|_|_|_|", " _| _|", " _|_|_|_|", " _| ", " _| "], + "Q": [" _|_|_|_ ", " _| _|", " _| _|", " _| _|_|", " _|_|_ "], + "R": [" _|_|_| ", " _| _| ", " _|_|_| ", " _| _| ", " _| _|"], + "S": [" _|_|_|_|", " _| ", " _|_|_|_|", " _|", " _|_|_|_|"], + "T": [" _|_|_|_|", " _| ", " _| ", " _| ", " _| "], + "U": [" _| _|", " _| _|", " _| _|", " _| _|", " _|_|_|_|"], + "V": ["_| _|", " _| _|", " _| _| ", " _| _| ", " _|_| "], + "W": [" _| _|", " _| _|", " _| _|", " _| _| _|", " _|_|_|_|"], + "X": [" _| _|", " _| _| ", " _|_| ", " _| _| ", " _| _|"], + "Y": [" _| _|", " _| _| ", " _|_| ", " _| ", " _| "], + "Z": [" _|_|_|_|", " _| ", " _| ", " _| ", " _|_|_|_|"], +} + + +def block_code(name): + + name = name.upper() + rows = [""] * 5 + for char in name: + if char in letters: + design = letters[char] + for i in range(5): + rows[i] += design[i] + " " + else: + for i in range(5): + rows[i] += " " * 8 + for row in rows: + print(row) + + +name = input("Enter your name: ") +print(block_code(name)) diff --git a/done/stars.py b/done/stars.py new file mode 100644 index 0000000..fe0858b --- /dev/null +++ b/done/stars.py @@ -0,0 +1,7 @@ +n=int(input("Enter the number: ")) +for x in range(n,0,-1): + for y in range(x): + + print("*",end=" ") + + print(" ") \ No newline at end of file diff --git a/done/sum.py b/done/sum.py new file mode 100644 index 0000000..6124f86 --- /dev/null +++ b/done/sum.py @@ -0,0 +1,8 @@ +def sum(n): + if(n==1): + return 1 + else: + temp= (n*(n+1))/2 + return temp +n=int(input("ENter the number: ")) +print("Sum of n natural number are",sum(n)) \ No newline at end of file diff --git a/done/table.py b/done/table.py new file mode 100644 index 0000000..1fb7675 --- /dev/null +++ b/done/table.py @@ -0,0 +1,7 @@ +n=int(input("Enter the number to print the table: ")) +print("--------------") +for x in range(1,11): + table=n*x + #print(table) + print("|",n,"x",x,"=",table,"|") + print("--------------") diff --git a/done/table.txt b/done/table.txt new file mode 100644 index 0000000..ac6cdb8 --- /dev/null +++ b/done/table.txt @@ -0,0 +1,10 @@ +5 +10 +15 +20 +25 +30 +35 +40 +45 +50 \ No newline at end of file diff --git a/done/table_of_5.txt b/done/table_of_5.txt new file mode 100644 index 0000000..4af1832 --- /dev/null +++ b/done/table_of_5.txt @@ -0,0 +1 @@ +None \ No newline at end of file diff --git a/done/union.py b/done/union.py new file mode 100644 index 0000000..e69de29 diff --git a/main.py b/main.py new file mode 100644 index 0000000..abf07d9 --- /dev/null +++ b/main.py @@ -0,0 +1,22 @@ +from fastapi import FastAPI +import json + +app = FastAPI() + +def load_data(): + with open('patients.json', 'r') as f: + data = json.load(f) + return data + +@app.get("/") +def helllo(): + return {"message": "PAtient Management System"} + +@app.get('/about') +def about(): + return {"message": "A fully functional patient management system built with FastAPI."} + +@app.get('/view') +def view(): + data = load_data() + return data \ No newline at end of file diff --git a/patients.json b/patients.json new file mode 100644 index 0000000..a9eb5cd --- /dev/null +++ b/patients.json @@ -0,0 +1,52 @@ +{ + "P001": { + "name": "Ananya Sharma", + "city": "Guwahati", + "age": 28, + "gender": "female", + "height": 1.65, + "weight": 90.0, + "bmi": 33.06, + "verdict": "Obese" + }, + "P002": { + "name": "Ravi Mehta", + "city": "Mumbai", + "age": 35, + "gender": "male", + "height": 1.75, + "weight": 85, + "bmi": 27.76, + "verdict": "Overweight" + }, + "P003": { + "name": "Sneha Kulkarni", + "city": "Pune", + "age": 22, + "gender": "female", + "height": 1.6, + "weight": 45, + "bmi": 17.58, + "verdict": "Underweight" + }, + "P004": { + "name": "Arjun Verma", + "city": "Bangalore", + "age": 40, + "gender": "male", + "height": 1.8, + "weight": 95, + "bmi": 29.32, + "verdict": "Overweight" + }, + "P005": { + "name": "Neha Sinha", + "city": "Kolkata", + "age": 30, + "gender": "female", + "height": 1.55, + "weight": 75, + "bmi": 31.22, + "verdict": "Obese" + } +} \ No newline at end of file diff --git a/pyjokes_example.py b/pyjokes_example.py new file mode 100644 index 0000000..34fdc53 --- /dev/null +++ b/pyjokes_example.py @@ -0,0 +1,4 @@ +import pyjokes + +joke = pyjokes.get_joke() +print(joke) \ No newline at end of file