Skip to content

Instantly share code, notes, and snippets.

View Anshaadi's full-sized avatar
🎯
Focusing

Anshul Shrivastava Anshaadi

🎯
Focusing
View GitHub Profile
@Anshaadi
Anshaadi / upper lower.py
Created November 11, 2018 11:52
python program with GUI
from tkinter import *
window =Tk()
window.title("Uppercase-Lowercase")
frame=Frame(window)
entry=Entry(frame)
@Anshaadi
Anshaadi / gist:cb4d587337e16bf071da34e45079ee7b
Created September 29, 2018 08:05
modifying strings and working with unicode encoding and decoding
def display(s):
'''Display an argument value'''
print(s)
display(display.__doc__)
display(r'c:\program\n')
display('\nAnshul'+' '+'Shrivastava')
display('hello world\n'[3:7:2])
display('A' in 'Anshul')
display('A' not in 'Anshul')
@Anshaadi
Anshaadi / elifSimple
Created August 11, 2018 08:45
caTch the FAULT ....why elif not running?
input1 = input("write something....its just a mike testing..")
if len(input1) > 0 and input1 != 13041999:
print("good...move on..")
elif input1 == 13041999:
print("birthdate....buddy....!")
else :
print("lazy....!!!")