Skip to content

Commit 6fc593b

Browse files
committed
updated files
1 parent 668c120 commit 6fc593b

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

14_Decorators.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ def square(x):
4040

4141

4242

43-
# Types of Decorators
43+
"""Types of Decorators"""
44+
4445
# 1. Function Decorators
4546
# Function decorators are used to modify or enhance the behavior of functions.
4647
def simple_decorator(func):
@@ -86,7 +87,7 @@ def say_hello(self):
8687
obj.say_hello()
8788

8889

89-
# Common Built-in Decorators in Python
90+
"""Common Built-in Decorators in Python"""
9091
# @staticmethod
9192
class MathOperations:
9293
@staticmethod

15_Strings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
print(str4.strip()) # Remove leading and trailing spaces
1717
print(str3.replace("Venkateswara", "College")) # Replace substring
1818
print(str3.split()) # Split into a list of words
19-
print(str3.find("a")) # Find the index of a substring
19+
print(str3.find("a")) # Find the first occurence index of a substring
2020
print(str3.index("Venkateswara")) # Find the index of a substring (raises error if not found)
2121
print(str3.count("a")) # Count occurrences of a character
2222
print(str3.startswith("Ven")) # Check if string starts with a substring

0 commit comments

Comments
 (0)