Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small changes #20

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Day-02/examples/01-string-replace.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
text = "Python is awesome"
new_text = text.replace("awesome", "great")
print("Original text: " + " " +text)
new_text = text.replace("awesome", "great") # <name of object>.replace("target word", "any word with which you want to change")
print("Modified text:", new_text)
1 change: 1 addition & 0 deletions Day-02/examples/01-string-strip.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
text = " Some spaces around "
print("Original text: ",text)
stripped_text = text.strip()
print("Stripped text:", stripped_text)
2 changes: 1 addition & 1 deletion Day-02/examples/03-regex-findall.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import re

text = "The quick brown fox"
pattern = r"brown"
pattern = r"The"

search = re.search(pattern, text)
if search:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
- AWS automation with Boto3.
- Managing EC2 instances, S3 buckets, and more.
- Practice exercises and examples:
- Example: Creating a aws script for deploying applications to remote servers.
- Example: Creating a python script using boto3 to implement serverless functions.

## Day 14: Working with RESTful APIs
- Introduction to RESTful APIs.
Expand Down