KYKanchan Yadavinimkanchan.hashnode.dev·Jul 28, 2023 · 2 min readPython Password Generatorimport random lower = "abcdefghijklmnopqrstuvwxyz" upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" number = "0123456789" symbols = "[]{}()*;|_-" all = lower + upper + number + symbols length = 16 password = "".join(random.sample(all,length)) print(password) ...01I
KYKanchan Yadavinimkanchan.hashnode.dev·Jul 27, 2023 · 7 min readPython Programs For InterviewPython Program to check for Leap year. num = int(input("Enter a year: ")) if num % 4 == 0: if num % 100 == 0: if num % 400 == 0: print(f'{num} is not leap year') else: print(f'{num} is leap year') e...01I
KYKanchan Yadavinimkanchan.hashnode.dev·Jul 26, 2023 · 4 min readPython OOPS ConceptsWhat is Object Oriented Programming? Object Oriented Programming (oop) is a programming paradigm where the complete software operation as a bunch of objects talking to each other. An object in a collection of data and methods that operate on its dat...01I
KYKanchan Yadavinimkanchan.hashnode.dev·Jul 25, 2023 · 10 min readIf Statement in PythonExplanation If statements allow your program to make a decision and change the route that is taken through the program. Indenting Lines of Code In order to indent text you can use your [Tab] key or you can press your [space key] five times. The [bac...01I
KYKanchan Yadavinimkanchan.hashnode.dev·Jul 23, 2023 · 2 min readHigher-Order Functionwhat is a Higher-Order Function? In Python a higher-order function is a function that takes takes one or more function as arguments, return a function as its result or both. In other words, it treats functions as first-class citizens, allowing them ...01I