Skip to content

Commit 9ecc229

Browse files
authored
Merge pull request #81 from lironmiz/unit6-Ex6.2.2
Create unit6_ex6.2.2.py
2 parents d1ccd8f + 7cf1f66 commit 9ecc229

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

unit6_ex6.2.2.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# exersice 6.2.2 from unit 6
2+
3+
'''
4+
given the list
5+
programming_languages = ['Python', 'Perl', 'R', 'Ruby']
6+
7+
which of the lines of code his output will be 'R'
8+
'''
9+
10+
# Answer:
11+
print(programming_lanquages[2][0])
12+
print(programming_languages[3][0])
13+
print(programming_languages[-2][0])
14+
print(programming_languages[-1][-4])
15+
print(programming_languages[2])
16+
print(programming_languages[-2])
17+

0 commit comments

Comments
 (0)