๐ง Introduction ๐ Python Day 8 – Lists Ippati varaku manam functions nerchukunnam. Eroju manam Lists gurinchi nerchukundam. ๐ List ante multiple values ni okesari store cheyadaniki use avutundi ๐ก Example: Shopping items list laga ๐ฆ ๐น Create List numbers = [ 1 , 2 , 3 , 4 , 5 ] names = [ "Manju" , "Ravi" , "Kiran" ] ๐น Access List (Index) print ( numbers [ 0 ]) # 1 print ( names [ 1 ]) # Ravi ๐ Index always 0 nundi start avutundi ⚠️ ๐น Add Elements numbers . append( 6 ) print ( numbers ) ๐น Remove Elements numbers . remove( 3 ) print ( numbers ) ๐น Loop Through List for i in numbers : print ( i ) ๐น List Length print ( len ( numbers )) ๐น Slicing print ( numbers [ 1 : 4 ]) ๐งช Real Example marks = [ 80 , 90 , 75 , 60 ] for m in marks : if m >= 75 : print ( "Pass:" , m ) ๐ฏ Mini Practice names = [ "A" , "B" , "C" ] names . append( "D...
๐ง Introduction ๐ Python Day 7 – Functions Ippati varaku manam loops nerchukunnam. Eroju manam Functions gurinchi nerchukundam. ๐ Function ante reusable block of code ๐ Same code malli malli rayakunda use cheyachu ๐ก Real-time lo time save + clean code ๐ฅ ๐น Function Create Cheyadam def greet (): print ( "Hello, Welcome!" ) ๐ Function call cheyali: greet () ๐น Function with Parameters def greet ( name ): print ( "Hello" , name ) greet ( "Manju" ) ๐น Function with Return def add ( a , b ): return a + b result = add ( 10 , 5 ) print ( result ) ๐งช Real Example def check_even ( num ): if num % 2 == 0 : return "Even" else : return "Odd" print ( check_even ( 4 )) ⚠️ Important Points ๐ def keyword use chestam ๐ Function call cheyyakapothe run avadu ๐ return ...