From c5d996daefc63b43cb4e3affc7030daf503f9b5b Mon Sep 17 00:00:00 2001 From: Francisco G P Date: Wed, 5 Mar 2025 10:33:02 -0700 Subject: [PATCH] Fixed typos in some folders and files. Changed some comments/grammar in StringSplicing.py for best practice. --- Course Introduction/Introduction.md | 39 ++++++++---------- Examples/String Manipulation/StringSlicing.py | 26 ++++++++---- .../README.md | 0 .../Web Scraping.md.docx | Bin 4 files changed, 35 insertions(+), 30 deletions(-) rename {Lesson 5 - Web Sraping => Lesson 5 - Web Scraping}/README.md (100%) rename {Lesson 5 - Web Sraping => Lesson 5 - Web Scraping}/Web Scraping.md.docx (100%) diff --git a/Course Introduction/Introduction.md b/Course Introduction/Introduction.md index 7cd1595..21df1d4 100644 --- a/Course Introduction/Introduction.md +++ b/Course Introduction/Introduction.md @@ -4,27 +4,24 @@ This repository walks you through the Object Oriented Programming concepts in py The course plan is as shown in the repository. There are four lessons which govern the flow of the course. It is highly recommended to refer to online resources for a detailed study about the mentioned topics which have been briefly covered. -For the Tasks study in depth about the problem statements, conduct online research about various available modules and then start coding. Coding solutions have been provided in the resources folder. - +For the Tasks study in depth about the problem statements, conduct online research about various available modules and then start coding. Coding solutions have been provided in the resources folder. ## Course Breakdown: - - -* Lesson 1: Introduction To Python - * Download - * Installation - * About Python -* Lesson 2: Using Functions - * About Functions - * Python Standard Library - * Inbuilt Functions - * Task 1 - * Task 2 -* Lesson 3: Introduction To OOP - * About -* Lesson 4: OOP Implementation - * Task 1 - * Task 2 -* Lesson 5: Web Sraping - * Web Scraping - Introduction +- Lesson 1: Introduction To Python + - Download + - Installation + - About Python +- Lesson 2: Using Functions + - About Functions + - Python Standard Library + - Inbuilt Functions + - Task 1 + - Task 2 +- Lesson 3: Introduction To OOP + - About +- Lesson 4: OOP Implementation + - Task 1 + - Task 2 +- Lesson 5: Web Scraping + - Web Scraping - Introduction diff --git a/Examples/String Manipulation/StringSlicing.py b/Examples/String Manipulation/StringSlicing.py index ab57cbd..541e2fb 100644 --- a/Examples/String Manipulation/StringSlicing.py +++ b/Examples/String Manipulation/StringSlicing.py @@ -1,20 +1,28 @@ word = "photosynthesis" #otosy -print(word[2:7]) #strts from 2 and ends before 7 +print(word[2:7]) # Starts from index 2 and ends before index 7 + #photo -print(word[:5]) #ends before 5 +print(word[:5]) # Ends before index 5 + #photosynthesis -print(word[:]) #print whole string +print(word[:]) # Print whole string + #ptyhi -print(word[::3]) #print 0 and multiple of 3 afterwards +print(word[::3]) # Print index 0 and multiples of 3 afterwards + #tyhi -print(word[3::3]) #print 3 and multiple of 3 afterwards +print(word[3::3]) # Print index 3 and multiples of 3 afterwards + #photosynthesi -print(word[:-1]) #ends before -1 +print(word[:-1]) # Ends before index -1 + #photosy -print(word[:-7]) #ends before -7 +print(word[:-7]) # Ends before index -7 + #sisehtnysotohp -print(word[::-1]) #print string in reverse +print(word[::-1]) # Print reversed string + #sotohp -print(word[5::-1]) #print reverse till 5 \ No newline at end of file +print(word[5::-1]) # Print reversed string till index 5 diff --git a/Lesson 5 - Web Sraping/README.md b/Lesson 5 - Web Scraping/README.md similarity index 100% rename from Lesson 5 - Web Sraping/README.md rename to Lesson 5 - Web Scraping/README.md diff --git a/Lesson 5 - Web Sraping/Web Scraping.md.docx b/Lesson 5 - Web Scraping/Web Scraping.md.docx similarity index 100% rename from Lesson 5 - Web Sraping/Web Scraping.md.docx rename to Lesson 5 - Web Scraping/Web Scraping.md.docx