Basics of Lists May 21, 2022 Basics of Lists mixed = [ "Xtra" , "Coding" , 14 , 1.6 , True , False ] print ( mixed ) print ( mixed [:: 2 ]) number...Read More
Scope of Variables May 18, 2022Scope of Variables num = 20 # Global variables def test1 (): global num num = 10 # Local variables return num # def ...Read More
Default Parameter May 17, 2022 Default Parameter def add_two ( a , b = 5 ): return ( a + b ) print ( add_two ( 5 ))Read More
Define Greatest May 16, 2022 Define Greatest def greatest ( a , b , c ): if a > b and a > c : print ( a ) else : if b > c : ...Read More
Print Vs Return May 15, 2022 Print Vs Return def add_three ( a , b , c ): print (a+b+c) sum_three = add_three( 2 , 3 , 5 ) print (sum_three) def add_three ( a...Read More
Functions in Python May 07, 2022 Functions in Python def add_two ( a , b ): #Parametre return ( a + b ) print ( add_two ( 2 , 3 )) #ArgumentsRead More
Break and Continue Keyword May 05, 2022 Break & Continue Keyword # Break for i in range ( 1 , 11 ): if i == 5 : break print ( i ) # Continue for ...Read More
Question/Answer - 5 May 03, 2022Question # start - 1 # end - 11 # 1 + 3 + 5 + 7 + 9 + 11 = 36 # Add odd number between the number entered by user(including those number...Read More