Posts
Showing posts from October, 2020
CALCULATING ARMSTRONG NUMBERS EASY TO CALCULATE AND UNDERSTANDABLE
- Get link
- X
- Other Apps
CALCULATING ARMSTRONG NUMBER IN PYTHON LANGUAGE
- Get link
- X
- Other Apps
Code:- while True : """ 128649 1^6+2^6+8^6+6^6.... """ a = input ( " FIRST LET ME KNOW THE NUMBER WHAT IS IT? : " ) power = len ( a ) li = [] if a == " quit " . lower (): quit () #print(power) for i in a : e = int ( i ) ** power li . append ( e ) #print(li) #print(sum(li)) if sum ( li ) == int ( a ): print ( f " { a } is an...
MY FIRST MYSQL PROJECT I EVER MADE
- Get link
- X
- Other Apps
FIRST FILE CODE: import mysql . connector as connector ab = 0 asking = int ( input ( " How many numbers you actually want to add: " )) if asking == 0 : pass quit () else: while ab < asking : asking -= 1 name = input ( " Enter The name you want to add: " ) number = int ( input ( " Enter the number you want to add: " )) a = connector . Connect ( host = " localhost " , user = " root " , passw...
MAKING QRCODES IN PYTHON LANGUAGE OR PYTHON 3 LANGUAGE(AND YOU CAN SCAN THIS QR CODE [THE GIVEN IMAGE ON THIS BLOG])
- Get link
- X
- Other Apps
PYTHON OR PYTHON 3 PROGRAM FOR GAME STONE, PAPER, SCISSOR
- Get link
- X
- Other Apps
import random choices = [ " stone " , " scissor " , " paper " ] computer_choice = random . choice ( choices ) coputer_score = 0 player_score = 0 while True : player_choice = input ( " Enter Your choice from stone, paper, scissor: " ) if computer_choice == player_choice . lower (): print ( " It is a draw here " ) pass elif computer_choice == " stone " and player_choice . lower () == " paper " : player_score += 1 print ( " Here Player Wins!!! " ) ...