This file contains hidden or 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.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.
This file contains hidden or 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
| ''' | |
| ------------------------------------------------------------------------------------------------ | |
| 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 :- |
This file contains hidden or 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 | |
| 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") |
This file contains hidden or 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 | |
| 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 ") |