diff --git a/unit6_ex6.2.2.py b/unit6_ex6.2.2.py new file mode 100644 index 0000000..979f981 --- /dev/null +++ b/unit6_ex6.2.2.py @@ -0,0 +1,17 @@ +# exersice 6.2.2 from unit 6 + +''' +given the list +programming_languages = ['Python', 'Perl', 'R', 'Ruby'] + +which of the lines of code his output will be 'R' +''' + +# Answer: +print(programming_lanquages[2][0]) +print(programming_languages[3][0]) +print(programming_languages[-2][0]) +print(programming_languages[-1][-4]) +print(programming_languages[2]) +print(programming_languages[-2]) +