mirror of
https://github.com/Hizenberg469/Python-tutorial.git
synced 2026-04-19 23:12:24 +03:00
decorators
This commit is contained in:
@@ -87,6 +87,16 @@
|
||||
|
||||
list are mutable but tuple are immutable
|
||||
|
||||
-> set:
|
||||
|
||||
set is a unordered collection of unique objects.
|
||||
|
||||
for ex:
|
||||
my_set = { 1,2,3,4,5,5 }
|
||||
my_set.add(100)
|
||||
my_set.add(2)
|
||||
print(my_set)
|
||||
|
||||
-> using keyword and using methods:
|
||||
|
||||
using keyword to access anything which may not exist
|
||||
|
||||
Reference in New Issue
Block a user