Skip to content
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
16 changes: 16 additions & 0 deletions can.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#LIST & TUPLES
#Create a list using[]
a=[1,2,3,4,5,6,7,80]
print(a[2])
a[0]=6
print(a)
#We Can Create a List With Items Of Different Types
r1 = [3,4,45,54,68,876,422,434]
r1.sort()
print(r1)
r1 = [3,4,45,54,68,876,422,434]
r1.reverse()
print(r1)
r1 = [3,4,45,54,68,876,422,434]
r1.insert(1,43,22)
print(r1)
39 changes: 39 additions & 0 deletions harry_code par.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Story = "once upon a time there was a town name was a texas"
# print(Story[0:9])
# print(len(Story))
# print(Story.endswith("Botson"))
# print(Story.count("0"))
# print(Story.capitalize())
# print(Story.find('time'))
# print(Story.replace("texas",'Botson'))

# LIST & TUPLES
# Create a list using[]
# a=[1,2,3,4,5,6,7,80]
# print(a[2])
# a[0]=6
# print(a)
# We Can Create a List With Items Of Different Types
# r1 = [3,4,45,54,68,876,422,434]
# r1.sort()
# print(r1)
# r1 = [3,4,45,54,68,876,422,434]
# r1.reverse()
# print(r1)
# r1 = [3,4,45,54,68,876,422,434]
# r1.insert(1,43,22)
# print(r1)

# from numpy import set_string_function
# import regex as re
# Get some string as input
# string = set_string_function()
# List to store all the matches
# matches=[]
# Iterate over the input strings for string in stringS
# compile the regex
# rex=re.compile(r'[a-2]+')
# Check the string against the regex
# matches=rex.findall (string)
# finally append the matches to list
# matches.extend(matches)