Skip to main content

Posts

Showing posts from January, 2021

Mini Responsive Website (only code)

I have just tried to frame a mini responsive website. This program takes input from user and responses according to that. HOW TO RUN THIS CODE:- Download any python running IDE to run this code. HERE's THE CODE:- your = ( input ( "ENTER THE PASSWORD TO ACESS THE SITE. \n ==> " )) # The password is 'i am your boss' if (your == "i am your boss" ) : print ( " \n WOHOO!, YOU GOT THE RIGHT PASSWORD." ) while (your == "i am your boss" ) : school = int ( input ( " \n ENTER THE FOLLOWING NUMBERS TO FIND THE DETAILS OF THE FOLLOWING CADETS \n 1. PIYUSH SHARMA \n 2. ANIRUDH SHARMA \n 3. DHURANDER MAURYA \n 4. PRANAV SHARMA \n 5. GURTEJ SINGH \n ==> " )) if (school == 1 ) : print ( " \n HERE IS THE DESCRIPITION :- \n\n HE IS THE MOST INTELLIGENT BOY OF OUR WHOLE SCHOOL. HE LOVES PYTHON, MATH, ENGLISH AND SCIENCE. \n " ) ii = input ( "WOULD YOU LIKE TO COMMENT ON HIM ? \n ==...

Python Bill Generator (only code)

  I have made this Bill Generator using Python  Programming. This is a very useful Bill  Generator as it doesn't need adding operations every time. HOW TO RUN THIS CODE:- Download any python running IDE to run this code. HERE's THE CODE:- print("\n\t\tWELCOME TO MY BILL BOOK.\n") print("PRESS 'q' TO STOP AT ANY MOMENT.") amount = 0 kite = input("PRESS 's' TO START BILLING.\n==> ") if(kite=="s") :     while(True) :         a = input("ENTER YOUR AMOUNT.\n==> ")         if(a!='q') :             amount = int(a)+amount             print(f'TILL NOW YOUR BILL = {amount}')             continue         elif(a=="q") :             print(f"YOUR TOTAL BILL = {amount}")             print("THANKS FOR USING MY BILL GENERATOR.")           ...

Stone, Paper and Scissor - Game (only code)

  This Project is of a Game, which is very popular among small children. I have made it using Python. We can play it with Computer. HOW TO RUN THIS CODE:- Download any python running IDE to run this code. HERE's THE CODE:- import random habby = ["Stone" , "Paper" , "Scissor"] riu = random.choice(habby) humanr = 0 computer = 0 print("\t\tWELCOME TO STONE, PAPER AND SCISSOR GAME.") print("\t\tTHIS GAME IS BETWEEN YOU AND COMPUTER.\n") i = 1 while (i<=10) :     null = input("ENTER 'st' FOR STONE, 'p' FOR PAPER AND 's' FOR SCISSOR.\n==> ")     if(riu=="Stone" and null=="p") :         print("YOU WON THIS ROUND." , f"                                                   REMAINING ROUNDS = {10-i}")         humanr = humanr+1         print(f"YOUR TOTAL POINTS = {humanr}")   ...

Guess The Number - Game (only code)

This project is of a game, which is made with python codes. This game is limited to only 5 moves , and the target is between 1 - 10. HOW TO RUN THIS CODE:- Download any python running IDE to run this code. HERE's THE CODE :- # First Python Game # Python Game # Guess The Number import random opop = (1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10) yours = random.choice(opop) print("\n\t\t\tWELCOME TO GUESS THE NUMBER GAME.") print("\t\t\tYOUR TARGET IS BETWEEN 1-10") print("TOTAL NO. OF GUESSES IS 5" , end = "") i = 1 while(i<=5) :     yg = int(input("\nENTER YOUR GUESS\n==> "))     if(yg<yours and yg<11) :         print("YOUR GUESS IS LESS" , f"                                                         REMAINING GUESSES = {5-i}")     elif(yg>yours and yg<11) :         ...

Code To Print Tables (only code)

This project is made to help a student who is weak in mathematics. This program can tell the tables, right from one to thousand. HOW TO RUN THIS CODE:- Download any python running IDE to run this code. HERE's THE CODE :-             a = int(input("Enter any no. to print its table : \n==> ")) i = 1 while(i<=10) :     if (a>1000) :         print("I doesn't support the programme of no. greater than 1000.")         break     print(a , "X" , i , "=" ,  a*i)     i+=1 nor = input("If You Want To Continue Then Press y Otherwise Press Any Thing To Leave.\n==> ") def jiy() :     a = int(input("Enter any no. to print its table : \n==> "))     i = 1     while(i<=10) :         if (a>1000) :             print("I doesn't support the programme of no. greater than 1000.")       ...

Faulty Calculator (only code)

This is a faulty calculator. It shows right answers except some particular questions.  This calculator has same pros as well as some cons. HOW TO RUN THIS CODE:- Download any python running IDE to run this code. HERE's THE CODE :- a = int(input("Enter Any Number : \n==> ")) b = int(input("Enter Another Number : \n==> ")) c = input("Enter Any of the following operations to carry out the calculations :- \n 1. + \n 2. - \n 3. * \n 4. / \n==> ") if (a == 45 and b == 3 and c == "*") :     print("The answer is" , 55) elif (a == 56 and b == 9 and c == "+") :      print("The answer is" , 77) elif (a == 56 and b == 6 and c == "/") :     print("The answer is" , 4) elif (c == "+") :     print("The answer is" , a + b) elif (c == "-") :     print("The answer is" , a - b) elif (c == "*") :     print("The answer is" , a * b) elif (c == ...

Contact Book (only code)

This project deals with the contacts of some persons. We can check the contact of any person through this programme. HOW TO RUN THIS CODE:- Download any python running IDE to run this code. HERE's THE CODE :- print(' This Is a Project Of Contact Book.') pla = {"Papa Ji" : 9797xxxxxx , "Papa Ji 2" : 9419xxxxxx , "Piyush" : 7298xxxxxx , "Mumma Jio" : 6006xxxxxx , "Didi Ji" : 9797xxxxxx , "Massi" : 7051xxxxxx , "Juhi Didi" : 7889xxxxxx , "Chai" : 8082xxxxxx , "Badi Mumma" : 8082xxxxxx , "Buji Ji" : 8715xxxxxx} a = int(input("Enter The Number To Get The Phone No. Of The Following :-\n1. Papa Ji\n2. Papa Ji 2\n3. Piyush\n4. Mumma Jio\n5. Didi Ji\n6. Massi\n7. Juhi Didi\n8. Chai\n9. Badi Mumma\n10. Buji Ji\n==> ")) if(a==1) :     print("Here Is Your Number :-")     print (pla["Papa Ji"]) elif(a==2) :     print("Here Is Your Number :-") ...