100 Days Of Python - Day 17
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 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...
Day 15 Setting up a local development environment Installing Python on Ubuntu 22.04 using the terminal sudo apt update sudo apt-get install python3 python3-dev Source: How to Install Pytho...
Day 14 Higher Lower Game # game_data.py data = [ { 'name': 'Instagram', 'follower_count': 346, 'description': 'Social media platform', 'country': 'United State...
Day 13 Debugging Debugging is the process of finding and fixing errors in code. The Python debugger is pdb. pdb is a module that is built into Python. It can be used to set breakpoints i...
Day 12 Scope Scope refers to the visibility of variables. Variables defined outside of a function are accessible inside the function. Variables defined inside a function are not accessible...
Day 11 Blackjack Capstone Project # art.py logo = """ .------. _ _ _ _ _ |A_ _ |. | | | | | | (_) | | |( \/ ).-----. | |...
Day 10 Functions with Outputs def format_name(f_name, l_name): formatted_f_name = f_name.title() formatted_l_name = l_name.title() return f"{formatted_f_name} {formatted_l_name}" pri...
Day 9 Dictionaries Dictionaries are unordered collections of data in key-value pairs. Dictionaries are defined using curly braces {}. They are similar to objects in JavaScript. programmi...
Day 8 Keyword Arguments You can pass arguments to a function by using the = sign. def greet(name, location): print(f"Hello {name}") print(f"What is it like in {location}?") greet(locati...