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

Add some more stuffs in your beginner python. #4

Open
wants to merge 4 commits into
base: master
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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# python
Python tutorials
14 changes: 14 additions & 0 deletions beginner_python/11-array.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# create an array
cars = ["Ferrai", "BMW", "Mersedes"," Honda"]

#printting the array
print(cars)

# for first element in array
print(cars[0])

# for last element in array
print(cars[-1])

#printing the array in range
print(cars[1:3])