Instantly share code, notes, and snippets.

🎯
Focusing

# Jayesh Tiwari JayeshTiwari03

🎯
Focusing
• EY
• Bharat/India
• 11:09 (UTC +05:30)
Created February 22, 2018 12:11
P Exercises
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 name = str(input("Tell me your name ")) age = int(input("What is your age? ")) year = str((2018 - age) + 100) print (name + " will be 100 years old in " + year)
Created February 22, 2018 14:04
Odd or Even
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 num = int(input("Give me a number")) if num %2==0: print ("Even") else: print ("Odd") if num%4==0: print ("Mult of 4") else: print ("Normal Number")
Created February 22, 2018 19:03
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] num = int(input("Choose a number: ")) new_list = [] for i in a: if i
Created February 22, 2018 19:31
Python Exercise on http://www.practicepython.org
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 num = int(input("Please choose a number to divide: ")) listRange = list(range(1,num+1)) divisorList = [] for number in listRange: if num % number == 0: divisorList.append(number)
Created February 27, 2018 07:24
Python Blocks Exercises(trinket.io)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 age = input("What us your age?") age = int(age) * int(7) print ("Your age in dog years will be", age, "years")
Created February 27, 2018 11:43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 #!/bin/python3 from random import randint player = input("rock, paper or scissor") print(player, "vs", end=' ') chosen = randint(1, 3) if chosen == 1:
Created March 8, 2018 12:55
Battleship game created in Codecademy Python Course
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 from random import randint board = [] for x in range(0, 5): board.append(["O"] * 5) def print_board(board): for row in board: print " ".join(row)
Created January 8, 2020 19:39
Tribute Page FCC - Lilly Singh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters


Lilly Singh

The woman who inspired a million women

Here's a time line of Lilly Singh life:

Created January 17, 2021 06:56
input box
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters

Created January 17, 2021 06:59
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 .dark { background-color: hsl(199.2,89.8%,11.6%); color: hsl(0,0%,94.9%); }