Skip to content

Commit ee21d09

Browse files
Add files via upload
1 parent a9fab0f commit ee21d09

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

str.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
str="welcome"
2+
print(str[2])
3+
print(str[-1])
4+
print(str[2:])
5+
print(str[:4])
6+
print(str[-7:-1])
7+
str1="""hello this is tushar shukla from kanpur
8+
,uttar pradesh,
9+
studying in lovely professional university"""
10+
print(str1)

unary.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
x=2
2+
y=-x
3+
print(y)

0 commit comments

Comments
 (0)