Let me break down everything step-by-step with detailed explanations for beginners.
Module 1: Introduction to Lists
Lesson 1: What are Lists?
-
Definition of lists in Python:
- A list is an ordered collection of items in Python.
- Lists are mutable, meaning they can be changed after creation.
- Lists can contain elements of different data types.
-
How lists are used in programming:
Module 1: Introduction to Strings
Lesson 1: What are Strings?
- Definition of strings in Python
- How strings are used in programming
- Examples of strings in everyday life
Example:
# Examples of strings- Function with String Manipulation
def create_username(first_name, last_name):
first_initial = first_name[0].lower()
username = f"{first_initial}{last_name.lower()}"
return username[:8] # Limit username to 8 charactersThinking about writing something on the Barça vs PSG second leg and I gotta say, it got pretty emotional watching this match. Barça proved me wrong, and I was initially skeptical about their lack of balance and consistency in performance.
As usual, Barça started cautiously, soaking up pressure from PSG who began aggressively, winning the ball and dominating possession. However, thing changed with nice move on the PSG's left by Yamal, a subtle and silky hesitation unbalanced Mendes and Lamal went past through an inside cut. A good cross followed, allowing Rafinha to score the opening goal – though it was somewhat
I wasn’t expecting this score line, thought a 1-1 draw or maybe 1-0 RM or maybe a little bit more caged affair. Didn’t go that way. Real played mostly on the break or transitions, using the pace of Vini or Rodrygo and to some extent Valverde or Camavinga. Man city got a great opening and then Real got two goals, i have to say they got lucky to some extent particularly for the first goal. Then city scored two golazos, Foden kind of expected as he is scoring banger quite a lot, but wasn’t expecting for Gvardiol. On the other side, Valverde is pretty much is known for that, i wasn’t really surprised. But i was surprised see him that open, Kovacic was laboring, didn’t cover him.
- Haaland was tightly marked by Rudiger, either he couldn’t go through or whenever he got, he was fouled. Also, Haaland was kind of playing for the team, he was opening up shooting lane by dragging the defender, that gives Foden a little bit more space and opening to make those shot. So, Haaland kind of taking
| programs.starship = { | |
| enable = true; | |
| settings = { | |
| # "$schema" = "https://starship.rs/config-schema.json"; | |
| add_newline = true; | |
| command_timeout = 500; | |
| continuation_prompt = "[∙](bright-black) "; | |
| format = "[](0x9A348E)$username$hostname$localip$shlvl$singularity$kubernetes[](fg:0x9A348E bg:0xDA627D)$directory$vcsh[](fg:0xDA627D bg:0xFCA17D)$git_branch$git_commit$git_state$git_metrics$git_status$hg_branch[](fg:0x86BBD8 bg:0x06969A)$docker_context$package$buf[](fg:0xFCA17D bg:0x86BBD8)$c$cmake$cobol$container$daml$dart$deno$dotnet$elixir$elm$erlang$golang$haskell$helm$java$julia$kotlin$lua$nim$nodejs$ocaml$perl$php$pulumi$purescript$python$rlang$red$ruby$rust$scala$swift$terraform$vlang$vagrant$zig$nix_shell$conda$spack$memory_usage$aws$gcloud$openstack$azure$env_var$crystal$custom$sudo$cmd_duration$line_break$jobs$battery[](fg:0x06969A bg:0x33658A)$time$status$shell$character"; | |
| right_format = ""; | |
| scan_timeout = 30; |
Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.
The ones I use regularly include: bat, dust, exa, fd, hyperfine, miniserve, ripgrep, just, zoxide and cargo-wipe.
| # See https://pre-commit.com for more information | |
| # See https://pre-commit.com/hooks.html for more hooks | |
| repos: | |
| - repo: https://github.com/pre-commit/pre-commit-hooks | |
| rev: v3.2.0 | |
| hooks: | |
| - id: trailing-whitespace | |
| - id: end-of-file-fixer | |
| - id: check-yaml | |
| - id: check-added-large-files |