Get link Facebook X Pinterest Email Other Apps March 29, 2022 GUESS GAME🎮🎲secret_word = ("utkarsh")guess = ""while guess != secret_word: guess = input("enter the guess: ")print("You Win") Get link Facebook X Pinterest Email Other Apps Comments AyushMarch 30, 2022 at 1:33 AMBadaiya guruReplyDeleteRepliesReplyAdd commentLoad more... Post a Comment
April 19, 2022 class and object class Person: def __init__ ( self , name , age): self .name = name self .age = age def myfunc ( self ): print ( "Hello my name is " + self .name) p1 = Person( "John" , 36 ) p1.myfunc() Read more
March 29, 2022 WHILE LOOP➰ i = 1 while i <= 10 : print (i) i += 1 print ( "done with loop" ) Read more
March 31, 2022 CLASSES AND OBJECT class Student: def __init__ ( self , name , major , gpa , is_on_probation): self .name = name self .major = major self .gpa = gpa self .is_on_probation = is_on_probation IN APP.PY FILE from Student import Student student1 = Student( 'Utkarsh' , "Business" , 9.9 , False ) print (student1.name) OUTPUT= utkarsh Read more
Badaiya guru
ReplyDelete