100 Days Of Python - Day 25
Day 25 Reading and writing CSV files in python In python, we can use the csv module to read and write CSV files. CSV stands for Comma Separated Values. CSV files are text files that store t...
Day 25 Reading and writing CSV files in python In python, we can use the csv module to read and write CSV files. CSV stands for Comma Separated Values. CSV files are text files that store t...
Day 24 How to use python to read and write files In python, we can use the open() function to open a file. The open() function takes two arguments: the name of the file and t...
Day 23 turtle crossing game Create the turtle player The turtle player is going to have the following properties: a shape of a turtle a color of black a starting position of (0, -280) ...
Day 22 Day 22 Project - Pong Game Starting screen The starting screen is going to have the following properties: a width of 800 pixels a height of 600 pixels a black background it shou...
Day 21 Class Inheritance Inheritance Inheritance is a way to create a new class from an existing class. The new class is called the child class and the existing class is called the parent c...
Day 20 Snake Game Part 1 Create the Snake Body Create a snake body using the Turtle module, in the snake.py file. from turtle import Turtle STARTING_POSITIONS = [(0, 0), (-20, 0), (-40, 0)...
Day 19 Higher order functions and event listeners Higher order functions A higher order function is a function that can accept other functions as arguments and/or return functions as output. ...
Day 18 Importing Modules Modules are files containing Python code. Modules are used to organize code into logical groups. Basic Import The basic syntax for importing a module is: imp...
Day 17 Creating Classes Classes are blueprints for creating new objects. If the class name is has more than one word, it is written in PascalCase. The syntax for creating a class is: cla...
Day 16 Procedural Programming The code in the previous day (Day 15) is an example of procedural programming. This is a programming paradigm, derived from structured programming, based on the conc...