:[ Forums ]:
Topic: Problem 2
| Author: | Message: |
| RaducE Offline Forum Rank: kiddie ![]() ![]() Posts: 28 Thanks: 0 Contributor | Sorry but i got this challenge from the net and i can't solve it.Can somebody help me?
The solution is the missing code at Line 7 that will produce the output of a as shown. 1 a = ['Ptah', 'Ra', 'Horus', 'Geb', 'Aten', 'Atum', 'Isis', 'Sobek',] 2 b = ['Thoth', 'Osiris', 'Aten',] 3 a.pop(3) 4 a.remove('Aten') 5 a.pop() 6 b.append('Nut') 7 # Deleted! 8 print a ['Ptah', 'Ra', 'Horus', 'Atum', 'Isis', 'Thoth', 'Osiris', 'Aten', 'Nut'] |
| #1 Back To Top | |
| t0mmy9 Offline Forum Rank: 1337 ![]() ![]() ![]() ![]() ![]() Posts: 395 Thanks: 75 Administrator | solved
![]() for any one reading this whos curious the answer is a.extend(b) i can explain why if you ask. Signatures added! go to my account to add your own ![]() |
| #2 Back To Top |
Locked.
Online (last 15 mins): metallover



Signatures added! go to my account to add your own