diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index e28c002..e251270 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -32,6 +32,10 @@ diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 4f967ad..c11c03d 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,15 +2,8 @@ - - - - - - - - - + + @@ -31,11 +24,29 @@ - + - + + + + + + + + + + + + + + + + + + + @@ -92,6 +103,8 @@ @@ -116,11 +129,6 @@ - - - - - @@ -164,7 +172,7 @@ - + - - - - - - + + + + + + + + - - @@ -308,8 +325,9 @@ + - + @@ -322,7 +340,7 @@ - + @@ -336,7 +354,8 @@ - @@ -619,7 +638,21 @@ - + + + + + + + + + + + + + + + diff --git a/challenges69-79/challenge-078.py b/challenges69-79/challenge-078.py new file mode 100644 index 0000000..f9d94e1 --- /dev/null +++ b/challenges69-79/challenge-078.py @@ -0,0 +1,8 @@ +tv_program = ['GOT', 'Prison Break', 'Supernatural', 'Chernobyl '] +for i in tv_program: + print(i) +ask_name = str(input('Enter a name of show you want to add to list : ')) +ask_position = int(input('Enter position of entered show in list : ')) +tv_program.insert(ask_position, ask_name) +for i in tv_program: + print(i) diff --git a/challenges69-79/challenge-079.py b/challenges69-79/challenge-079.py new file mode 100644 index 0000000..b433cc4 --- /dev/null +++ b/challenges69-79/challenge-079.py @@ -0,0 +1,13 @@ +nums = [] +count = 0 +remove = False +while not remove: + if count == 3: + ask = str(input('Do you still want the last number they entered saved? yes|no : ')).lower() + if ask == 'no': + nums.pop(count-1) + remove = True + else: + nums.append(int(input('Enter number : '))) + count = count + 1 +print(nums)