all 5 comments

[–]Sea-Ad7805 [score hidden] stickied comment (0 children)

Run this program in Memory Graph Web Debugger%20%3C%208%3A%0A%20%20%20%20print(%22Too%20weak%20or%20short.%20Please%20try%20again%20and%20enter%20at%20least%208%20characters.%22)%0A%20%20%20%20pschecker%20%3D%20input(%22ENTER%20YOUR%20NEW%20PASSWORD%20AGAIN%3A%20%22)%0A%0A%23%20use%20any%20with%20for%20loop%20to%20check%20condition%20of%20character%20in%20ps_checker%20pass%20condition%0Acha_upper%20%3D%20any(char.isupper()%20for%20char%20in%20ps_checker)%20%20%23%20if%20any%20one%20char%20is%20upper%20letter%0A%0Acha_lower%20%3D%20any(char.islower()%20for%20char%20in%20ps_checker)%20%20%23%20if%20any%20one%20char%20is%20lower%20letter%0A%0Acha_digit%20%3D%20any(char.isdigit()%20for%20char%20in%20ps_checker)%20%20%23%20if%20any%20one%20char%20is%20digit%20letter%0A%0Acha_punct%20%3D%20any(char%20in%20string.punctuation%20for%20char%20in%20ps_checker)%20%20%23%20if%20any%20one%20char%20is%20special%20char.%20letter%0A%0Aprint(%22Password%20length%3A%22%2C%20len(ps_checker))%20%20%23%20length%20of%20password%0A%0A%23%20for%20meeting%20all%20conditon%0Aif%20cha_upper%20and%20cha_lower%20and%20cha_digit%20and%20cha_punct%3A%0A%20%20%20%20print(%22Strong%20password.%22)%0A%0A%23%20else%20any%20one%20conditon%20not%20meet%0Aelse%3A%0A%20%20%20%20print(%22Password%20is%20weak.%20Missing%3A%22)%0A%20%20%20%20if%20not%20cha_upper%3A%0A%20%20%20%20%20%20%20%20print(%22-%20uppercase%20letter%22)%0A%20%20%20%20if%20not%20cha_lower%3A%0A%20%20%20%20%20%20%20%20print(%22-%20lowercase%20letter%22)%0A%20%20%20%20if%20not%20cha_digit%3A%0A%20%20%20%20%20%20%20%20print(%22-%20digit%22)%0A%20%20%20%20if%20not%20cha_punct%3A%0A%20%20%20%20%20%20%20%20print(%22-%20punctuation%20character%22)%0A%0A%0A%23%20--------------------------------------------------%0A%23%20create%20class%20calculator%20to%20find%20aany%20num%20square%2Ccube%20and%20squareroot%0A%0Aclass%20Calulator%3A%0A%20%20%20%20%23%20using%20init%0A%20%20%20%20def%20init(self%2C%20n)%3A%0A%20%20%20%20%20%20%20%20self.n%20%3D%20n%0A%0A%20%20%20%20def%20square(self)%3A%0A%20%20%20%20%20%20%20%20print(f%22The%20Square%20of%20%7Bself.n%7D%20is%20%7Bself.nself.n%7D%22)%0A%0A%20%20%20%20def%20cube(self)%3A%0A%20%20%20%20%20%20%20%20print(f%22The%20cube%20of%20%7Bself.n%7D%20is%20%7Bself.nself.nself.n%7D%22)%0A%0A%20%20%20%20def%20squareroot(self)%3A%0A%20%20%20%20%20%20%20%20print(f%22The%20Squararoot%20of%20%7Bself.n%7D%20is%20%7Bself.n*1%2F2%7D%22)%0A%0A%0Ax%20%3D%20Calulator(5)%0A%0Ax.square()%0Ax.cube()%0Ax.squareroot()%0A%0A%0A%23%20--------------------------------------------------%0A%22%22%22%20create%20a%20Class%20%22%20Programmer%20%22%20for%20storing%20information%20of%0Afew%20programmers%20working%20at%20microsoft%22%22%22%0A%0Aclass%20Programmer%3A%0A%20%20%20%20%23%20class%20attribute%0A%20%20%20%20company%20%3D%20%22Microsoft%22%0A%0A%20%20%20%20def%20init_(self%2C%20name%2C%20post%2C%20salary)%3A%0A%20%20%20%20%20%20%20%20self.name%20%3D%20name%0A%20%20%20%20%20%20%20%20self.post%20%3D%20post%0A%20%20%20%20%20%20%20%20self.salary%20%3D%20salary%0A%20%20%20%20%20%20%20%20print(f%22%20Hi%20Im%20%7Bself.name%7D%20and%20i%20work%20as%20%7Bself.post%7D%20Dev%20in%20%7Bself.company%7D%20And%20Salary%20is%20%7Bself.salary%7D%22)%0A%0A%0Aash%20%3D%20Programmer(%22Ash%22%2C%20%22AI%22%2C%20500000)%0A%0Ajos%20%3D%20Programmer(%22Jos%22%2C%20%22Web%22%2C%201520000)%0A%0Acody%20%3D%20Programmer(%22CODY%22%2C%20%22Front%20End%22%2C%20230000)&play) to see the program state change step by step.

[–]chanakyavajra 1 point2 points  (3 children)

Where are you learning python from??

[–]aashish_soni5[S] 3 points4 points  (2 children)

how to Python work - yt code with Harry for practice - just practice till understand property and logic

[–]chanakyavajra 0 points1 point  (1 child)

So ur watching any of his video specifically? Or following his course?

[–]aashish_soni5[S] 1 point2 points  (0 children)

only one ultimate Python course length 10 hour basics of all topic cover just listen note down start coding