Skip to content

Commit ce39009

Browse files
committed
Added index_error_demo.py to Python-Basic-to-Advance repo
1 parent fb9e588 commit ce39009

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index_error_demo.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
names=["Payal","Jenny","Megha"]
2+
print(names[0])
3+
print(names[len(names)-2])
4+
a=names[-1]
5+
print(f"Hi,{a}")

0 commit comments

Comments
 (0)