top of page

Day 2 & Day 3

  • Writer: supriyamalla
    supriyamalla
  • Oct 2, 2020
  • 1 min read

Hi, it was a long day today. Not very pumped up today but I will still try.

So, learning today - Booleans!


Booleans isn't just about returning True, False (honestly I didn't realize the varied applications of booleans until completing the exercise on that!)


next up, Tuples and list.

Learnt the following:

  1. Lists and Tuples are same except tuples are immutable and List is mutable

  2. List use [] and tuples ()

List functions:

  1. append

  2. pop

  3. in, for ex: "earth" in planets (will return true/false)

  4. list.index('earth') (will return the position of the element)

  5. .as_integer_ratio()

  6. try, except (learnt this in the exercise problem) - See useful link

Loops, List comprehension:

  1. For, while

  2. Range

  3. List comprehensions


Cool, completed 2 days in a row! :)

Finally, done.


See you tomorrow!

Comentarios


Post: Blog2 Post

Subscribe Form

Thanks for submitting!

©2020 by Learn Data Science with me. Proudly created with Wix.com

bottom of page