Skip to content

Instantly share code, notes, and snippets.

View SANTOSHSHARMA11's full-sized avatar
😃
Learning and Teaching

Santosh horilal Sharma SANTOSHSHARMA11

😃
Learning and Teaching
  • Mumbai
View GitHub Profile
@SANTOSHSHARMA11
SANTOSHSHARMA11 / MusicPlayer
Created March 30, 2020 12:05
Python based Application using Pycharm IDE(Integrated Development Enviroment)
from tkinter import *
from tkinter import colorchooser
from pygame import mixer
from tkinter import messagebox
from tkinter import filedialog
import os
from mutagen.mp3 import MP3
# import time
# import threading
@SANTOSHSHARMA11
SANTOSHSHARMA11 / client.py
Created December 18, 2019 16:02
here you can act as server and client where two person can talk### Namt applicatable for diffrent two machine
import socket
import sys
def Msg():
s = socket.socket()
host = input(str("enter host_name :- "))
port = 8080
s.connect((host, port))
print("connected to server")
@SANTOSHSHARMA11
SANTOSHSHARMA11 / excelWork.py
Created December 17, 2019 05:47
it helps you to update your excel file
import openpyxl as x
from openpyxl.chart import Reference, BarChart, BarChart3D
i = 0
wb = x.load_workbook("transactions.xlsx")
sheet = wb['Sheet1']
# cell = sheet['a1']
cell = sheet.cell(1, 1)
#print(cell)
z = sheet.max_row
for k in range(2, z+1):
class dice:
def rol(self, l):
print(random.choice(l))
p = ((1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 6),
(2, 1), (2, 2), (2, 3), (2, 4), (2, 5), (2, 6),
(3, 1), (3, 2), (3, 3), (3, 4), (3, 5), (3, 6),
(4, 1), (4, 2), (4, 3), (4, 4), (4, 5), (4, 6),
(5, 1), (5, 2), (5, 3), (5, 4), (5, 5), (5, 6),
@SANTOSHSHARMA11
SANTOSHSHARMA11 / Basic_operation.py
Created December 14, 2019 15:27
using python class basic operation
class cal():
def __init__(self,a,b):
self.a=a
self.b=b
def add(self):
return self.a+self.b
def mul(self):
return self.a*self.b
def div(self):
return self.a/self.b
@SANTOSHSHARMA11
SANTOSHSHARMA11 / REMOVE_repetative_value.py
Created December 14, 2019 13:19
It will remove repetative value from tuple and list according to user define
a = [1, 2, 3, 4, 7, 7, 4]
b = []
for i in a:
if i not in b:
b.append(i)
print(b)
@SANTOSHSHARMA11
SANTOSHSHARMA11 / Emotes.py
Created December 14, 2019 13:17
IT will convert emoticon to emoji
def emotes():
p = input(">")
q = p.split(" ")
a = {"(:": " ☺ ", ":)": " 😞 ", "~": " 😡 "}# here emoji and emoticon can be added according to user
out = ""
for ch in q:
out += a.get(ch, ch) + " "
print(out)
@SANTOSHSHARMA11
SANTOSHSHARMA11 / AIHelp.py
Created December 14, 2019 13:15
It will help you to decide what action you should take according to weather
a=input("type of day")
if a == ' HOT' or a == ' hot':
print("its hot day \n Drink plenty of water")
elif a == ' COLD' or a == ' cold':
print("its cold \n wear warm clothes")
else:
print("its lovely day")
@SANTOSHSHARMA11
SANTOSHSHARMA11 / Weight_Convertor.py
Created December 14, 2019 13:12
It will convert the weight between pound and kilogram
weight=input("enter your weight in pound")
conversion = int(weight)*0.45
print("weight in kg"+str(conversion))
i = 0
while i <= 2:
p = int(input("guess your no from 0-9 : "))
i += 1
if p == 7:
{
print("YOU WIN BUDDY 😎😎😎😎")
}
break