Coding

So nowadays in Technology and Multimedia class, we learn about coding about Python. In Python, we learn about “For loop” and “While loop”. Do you know what are that? So For loop when you want to perform some actions a fixed number of times. And for While loop is perform an action until the condition is false. And also we learn some keywords too. In Python “Break”  mean to stop the loop and “Continue” it’s not mean to continue but it’s mean to stops one repetition of the loop and goes onto the next repetition. 

For loop Example: 

for letter in ‘Python’ :   

          print ‘Current Letter : ‘ , letter

 

While loop Example: 

i = 1

while i < 6:

       print ( i )

       i += 1

 

Leave a Reply

Your email address will not be published. Required fields are marked *