COMP 206 Lecture Notes - Lecture 28: Object Copying, Tuple, In C
Document Summary
Python is one of the languages where indentation is extremely important line defines functionality in the program. You end a function with indentation, no curly brackets. Be careful if your editor"s tab default is 8 spaces, but someone else"s is 6, because their edits will fuck up the indentation and therefore the code. You can do a lot of functionality that would take a whole file in c, or dozens of lines, it is built-in functionality in python. How many spaces you put in front of a. Can automatically give you functionality like listing a bunch of elements, and store new students, and access new records, etc. Also don"t need to make extra work, python has built-in easy to manage lists. But you don"t need to worry about how many bytes they take or anything. The only exception is when you want the python program to go really fast, you might want to ask how to optimize speed.