English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Suppose the list astronauts has the value
['Yuri Gagarin', 'John Glenn', 'Neil Armstrong']
Give a single Python statement that adds 'Alan Shepherd' to the list between
'Yuri Gagarin' and 'John Glenn'.

2007-12-11 14:38:30 · 3 answers · asked by Kenny 1 in Computers & Internet Programming & Design

3 answers

insert(1,'AlanShepherd')

2007-12-11 14:54:58 · answer #1 · answered by daa 7 · 0 0

at the beginning, do not identify your variable "checklist". It overwrites the built in checklist form. 2d, you would be wanting to apply the zip functionality, which pairs up corresponding aspects in unique lists. Zip(lst[0], lst[a million]) [(a million, 4), (2, 5), (3, 6)] There- now you ought to have your tuples. you ought to do some difficulty formatting with them you desire.

2016-12-17 15:17:49 · answer #2 · answered by ? 4 · 0 0

yuri russian earth orbit forst

j g us earth orbit

alan first man moon orbit

2007-12-11 14:57:39 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers