Skip to content

Instantly share code, notes, and snippets.

View ShambhaviPataskar's full-sized avatar

ShambhaviPataskar

View GitHub Profile
@ShambhaviPataskar
ShambhaviPataskar / Analysis.py
Created September 8, 2021 14:50
A sales analysis using jupyter notebook
#!/usr/bin/env python
# coding: utf-8
# # Sales Analysis
# ### import necessary libraries
# In[1]:
@ShambhaviPataskar
ShambhaviPataskar / Block Game.py
Created September 8, 2021 14:47
I have created a block game!
import pygame
import random
import sys
pygame.init()
text = "Game Over"
HEIGHT = 600
WIDTH = 800
@ShambhaviPataskar
ShambhaviPataskar / Tree.py
Created September 8, 2021 14:33
I animate a tree using turtle module
import turtle
def draw_tree(turt, width, height):
draw_trunk(turt, width, height)
draw_leaves(turt, width, height)
def draw_trunk(turt, width, height):
turt.color('brown')
turt.begin_fill()
turt.setheading(0) #Head to the right