Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on May 11, 2021. It is now read-only.

Commit 2e68414

Browse files
✨ Tuplas
1 parent 3222a72 commit 2e68414

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

β€Ž10_Tuplas/01_tuplas.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Use the correct syntax to print the first item in the fruits tuple.
2+
fruits = ("apple", "banana", "cherry")
3+
print(fruits[0])

β€Ž10_Tuplas/02_tuplas.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Use the correct syntax to print the number of items in the fruits tuple.
2+
fruits = ("apple", "banana", "cherry")
3+
print(len(fruits))

β€Ž10_Tuplas/03_tuplas.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Use negative indexing to print the last item in the tuple.
2+
fruits = ("apple", "banana", "cherry")
3+
print(fruits[-1])

β€Ž10_Tuplas/04_tuplas.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Use a range of indexes to print the third, fourth, and fifth item in the tuple.
2+
fruits = ("apple", "banana", "cherry", "orange", "kiwi", "melon", "mango")
3+
print(fruits[2:5])

0 commit comments

Comments
(0)

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /