Python Tutorial for Beginners 4: Lists, Tuples, and Sets


    In this Python Beginner Tutorial, we will begin learning about Lists, Tuples, and Sets in Python. Lists and Tuples allow us to work with sequential data, and Sets allow us to work with unordered unique values. We will go over most of the methods, learn when to use which data type, and also the performance benefits of each type as well. Let’s get started.

    The code from this video can be found at:

    Watch the full Python Beginner Series here:

    Slicing Video:

    ✅ Support My Channel Through Patreon:

    ✅ Become a Channel Member:

    ✅ One-Time Contribution Through PayPal:

    ✅ Cryptocurrency Donations:
    Bitcoin Wallet – 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
    Ethereum Wallet – 0x151649418616068fB46C3598083817101d3bCD33
    Litecoin Wallet – MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

    ✅ Corey’s Public Amazon Wishlist

    ✅ Equipment I Use and Books I Recommend:

    ▶️ You Can Find Me On:
    My Website –
    My Second Channel –
    Facebook –
    Twitter –
    Instagram –



    Previous article[PL] Ansible – Wprowadzenie – #3 Jak działa
    Next articleCara Boot dari USB di VMWare (Instal Ulang di Virtual Machine)


    1. def _init_ (self, text_file_name, positive_file_name, negative_file_name):
      self.file_name = text_file_name
      file_text = open ("{}".format (text_file_name), "r")
      self.text =
      with open("{}".format (positive_file_name)) as file:
      list_positive_words = file.readlines()

      the_positive_words = ""
      for line in list_positive_words:
      the_positive_words+=" "

      self.positive_words = the_positive_words.split()
      self.positive_words.append ("")

      with open("{}".format (negative_file_name)) as file:
      list_negative_words = file.readlines()

      the_negative_words = ""
      for line in list_negative_words:
      the_negative_words+=" "

      self.negative_words = the_negative_words.split()