Posts

Showing posts from July 28, 2021

Health Management System | Made with python.

  Health Management System This system basically works for 3 persons Harry, Rohan and Hammad. Their food and exercise is recorded. ----------------------------- def getdate (): import datetime return datetime.datetime.now() def see (a): if a== '1' : h= input ( "For food enter f and for exercise enter e: " ) if h== "f" : with open ( "harry-food.txt" ) as f: content = f.read() print (content) elif h== "e" : with open ( "harry-exercise.txt" ) as f: content = f.read() print (content) else : print ( "Enter f or e !" ) elif a== '2' : r = input ( "For food enter f and for exercise enter e: " ) if r == "f" : with open ( "rohan-food.txt" ) as f: content = f.read() print (content) ...

Study recorder made with python.

Study recorder This program just record the topics what ever you have studied in specified subjects. And after some time you can also check out the topics what you have studied... def getdate():     import datetime     return datetime.datetime.now() print("[This is a Study Recorder programme which recordes your study topics on various subjects.]") try:     while (True):         opinion = input("For recording a record enter 1 and to look a record of any subject enter 2\n")         if opinion == '2':             print("Your subjects:-\n1: Accounts\n2: Economics\n3: Business Studies\n4: English\n5: Music")             Rsubject = input("Enter the subject's number which you want to\nsee the topics which you have learn\n")             if Rsubject == "1":                 print("You chosed 1 for Ac...

Water Assistant | Made with python

  Water Assistant | Made with python Basically I made this program to manage my water consumed in a day and it helped me a lot.. ______________________ import datetime print("Hi! I am you Water Assistant !") clear = input("Starting new day press enter for clearing old stuff.. and not then press 1: ") anticlear = '' if clear == '':     with open("Waterdate.txt", "w") as f:         f.write(anticlear)     with open("waterdetail.txt", "w") as f:         f.write(anticlear)     print("Data cleared now start you newly fresh day...:))") else:     pass def time():     """to get date and time """     date = datetime.datetime.now()     return date with open("waterdetail.txt", "r") as f:     # just for printing previous value     content = f.read() with open("waterdate.txt", "r") as f:     date1 = f.read()     # pahaile se hi number of glasses ...

Join function in python.

 Join function in python. abc = ["Technical Guruji", "A2motivation",        "Trakin tech", "Aastha Creations", "Techza Gaming"] # for index, item in enumerate(abc): #     print(item, "and", end=" ") # a = "and".join(abc) a = " and ".join(abc) print(f"{a}many more are very famous youtubers..")

Snake, Water, Gun.. game made with python

 Snake, Water, Gun import random from playsound import playsound cpoints = 0 upoints = 0 print ( "Welcome to my game , read instructions carefully and enjoy the game :))" ) print ( "Choose from the following each time.. \n S:- For Snake \n W:- For Water \n G:- For Gun" ) print ( "Remember to write your choise in Capital each time otherwise your choice will not be taken by the computer" ) for i in range ( 10 ): objects = [ "Snake" , "Water" , "Gun" ] computer = random.choice(objects) user = input ( "Now enter your choice: " ) if user == "S" and computer == "Snake" : print ( "Same choice" , " \t\t\t\t\t\t\t You=" , upoints, ",Computer=" , cpoints) playsound( 'D: \\ game sounds \\ same choice1.mp3' ) elif user == "S" and computer == "Water" : upoints+= 1 print ( "Results \n You-Snake...