Loading...
「ツール」は右上に移動しました。
利用したサーバー: natural-voltaic-titanium
3278いいね 169432回再生

Difference Between List, Tuple, Set and Dictionary in Python

This Tutorials explains the difference between List, Tuple, Set and Dictionary in Python

DIFFERENCE BETWEEN
LIST - square braces
TUPLE - rounded braces
SET - The set keyword
DICTIONARY - curly braces: made up of key-value pairs

list1 = ["Computer", "Printer", "TV", "Camera", 89, 30.8]

tuple1 = ("Computer", "Printer", "TV", "Camera", 89, 30.8)

set1 = set(["Computer", "Printer", "TV", "Camera", 89, 30.8])
dict1 = {
1: "Monday",
2: "Tuesday",
3: "Wednesday"
}

Written explanation here:
www.kindsonthegenius.com/difference-between-list-t…

For all tutorials visit: www.kindsonthegenius.com/

Subscribe Kindson The Tech Pro Youtube: bit.ly/2PpJd8Q
Join my group ICS on Facebook: bit.ly/2UULiQj
Follow me on Instagram - www.instagram.com/kindsonm/
Connect with me on LinkedIn: www.linkedin.com/in/kindson/
Follow me on Twitter: twitter.com/KindsonM
Learn about me: www.kindsonthegenius.com/

コメント