Home > other >  Why want to seek advice, with the following for there is no way in front of each name in the form of
Why want to seek advice, with the following for there is no way in front of each name in the form of

Time:11-11

A exercises, this is a book to be in front of each magician name and the great, and invoke def show_magicians (old_magics) content to the output, have seen example is through while I & lt; Len () way of operating, and then you want to know about the pass for the form of, why can not you call me this code in the
where is the problem?
Def show_magicians (old_magics) :
For magic_name old_magics in:
Print (magic_name)


Def make_great (old_magics) :
For old_magic old_magics in:
Old_magic='the great'. The title () + old_magic
Return old_magics


K=[' Ketty 'and' Jerry ', 'Max', 'Tom']
Make_great (k)
Show_magicians (k)

CodePudding user response:

 def show_magicians (old_magics) : 
For magic_name old_magics in:
Print (magic_name)


Def make_great (old_magics) :
For I, old_magic enumerate in (old_magics) :
Old_magics [I]='the great'. The title () + old_magic
Return old_magics


K=[' Ketty 'and' Jerry ', 'Max', 'Tom']
Make_great (k)
Show_magicians (k)

CodePudding user response:

The upstairs make_great don't need to return a value
  • Related