CHEAT SHEET 4


Cheatsheet (Operations with Data Types)

In this section, you learned that:

  • Lists, strings, and tuples have a positive index system:

  • And a negative index system:

  • In a list, the 2nd3rd, and 4th items can be accessed with:

  • First three items of a list:

  • Last three items of a list:

  • Everything but the last:

  • Everything but the last two:

  • A single in a dictionary can be accessed using its key:


PYTHON PROGRAM SYNTAX SERIES

Comments

Popular Posts