#python

Published: 16 September 2024
on channel: Mastering Technology
97
11

Using * to Grab Excess Items

#pythonprogramming #shortcut

Parallel Assignment

Keyword can be placed at any position to grab excess items.

a,b, *rest= range(5)
print(a)
print(b)
print(rest)


On this page of the site you can watch the video online #python with a duration of hours minute second in good quality, which was uploaded by the user Mastering Technology 16 September 2024, share the link with friends and acquaintances, this video has already been watched 97 times on youtube and it was liked by 11 viewers. Enjoy your viewing!