Skip to content

Instantly share code, notes, and snippets.

View PANDATD's full-sized avatar
:octocat:
Python Practics

MR. TEJAS DIXIT PANDATD

:octocat:
Python Practics
View GitHub Profile
#!/bin/python3.8
class Person:
count = 0
def __init__(self, name ,sex = 'female', age=20):
Person.count = Person.count +1
self.name = name
self.sex = sex
self.age = age
@staticmethod #Funcation Decoretor
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@PANDATD
PANDATD / email.py
Last active October 24, 2020 05:20
'''
------------------------------------------------------------------------------------------------
README CAREFULLY
OKAY !!!!!!
------------------------------------------------------------------------------------------------
Now we will see how to send email using smtplib
where as smtplib is a package/ module which is help to send the email
in this case we will be using gmail you can use any okay means outlook ,or any !
prerequisite :-
#!/bin/python3
import os
import time as t
#this import is not being used
from time import sleep
os.system("clear")
def lsearch(array:list, search_element:any)->None:
#I commented the lines with sleep to be fair on the timing below
#t.sleep(0.1)
print("\nMethod:linear search")
#!/bin/python3
import os
import time as t
from time import sleep
os.system("clear")
def lsearch(array:list, search_element:any)->None:
print("\nMethod:linear search")
print("You entered: ",list(array),type(array))
print("Search Element is: ",search_element,type(search_element))
print("Searching started ")