100 Days Of Python - Day 15
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 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...
Day 7 Hangman Game # hangman_words.py word_list = [ 'abruptly', 'absurd', 'abyss', 'affix', 'askew', 'avenue', 'awkward', 'axiom', 'azure', 'bagpipes', 'bandwagon', 'banjo', 'bayou', 'beekeeper',...
Day 6 Python Functions A function is a block of code that performs a specific task. It is a reusable piece of code that can be called from anywhere in your program. Defining a function To defin...