For loops

Last term, We have studied about some of the basic, so this round we are starting into the first lessons. We learn for loops. we use it to print out data like names, and inputs. we mostly make some of the practices in the class. it was hard for the first time, but after I practice it, things get easier. I really like how to was teach, because I could know more how to create more functions for another project that i would need in the future. Technovation is one of the biggest project that I have join, so I might use python or codding rule for coding my application. I thought coding actually really useful, because it helps my brain to think critically. 

here is the example

  • if statements
  • Else if statements
  • continue statements
  • loops
  • ( we also learn more, but I missed the class for other project )

basically, these are the work that i have done

L = “letter”

Fruites = [‘apple’, ‘bannana’]

For x in fruites:

If x == “banana”:

Break

Print (x) ( it will not print your value because the word ” break ” mean to stop all the code )

Fruite [ ‘apple’, ‘banana’, ‘cherry’ ]

For x in fruits:

If x == “banana”:

Continue

Print (x) ( it will print out apple and cherry, because the word ” continue ” is to skips  a value. 

so, this is it! basically, it is to print out data or values that we are given in some points. However, some of them are really complicated, that is why it need a lot of determination. I first, kind of stress out a bit for the lesson, but that’s life. I got to ask my coding teacher clear detail of what I don’t understand, so that I could remember all of the steps and rules. 

Leave a Reply

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