Sep 16, 2024
python3 --version.var keyword needed in Python.X, Y, name, is_cool = (1, 2.5, 'John', True).# Comment''' Comment ''' or """ Comment """+ operator..format().[].fruits = ['apple', 'orange']().{}.{} with key-value pairs..get() method.def keyword.return keyword.lambda keyword.if, elif, else without parentheses.and, or, not.in, not in.for loops iterate over sequences (lists, strings, etc.).while loops run while a condition is true.break to exit loop, continue to skip iteration.pip.import datetime, from datetime import date.class keyword.__init__().self parameter.open() with modes ('w', 'a', 'r+').file = open('file.txt', 'w')json.loads().json.dumps().