0
What are methods or function that we can apply in "List","Strings" and "Dictionary"?
2 ответов
+ 1
https://docs.python.org/3/tutorial/datastructures.html
Tuples
https://www.w3schools.com/python/python_tuples.asp
List
https://www.w3schools.com/python/python_lists.asp
Dictionary
https://www.w3schools.com/python/python_dictionaries.asp
Sets
https://www.w3schools.com/python/python_sets.asp
Ive send links, cause I dont think I can just copy and send it here all of the functions, moreover, these links I sent you also have EXAMPLES you can learn with.
0
#this code will show you methods of class
print("String methods : ",end="\n"*2)
print([i for i in dir(str) if not i.startswith("__")])
print("\n"*2)
print("List methods :",end="\n"*2)
print([i for i in dir(list) if not i.
startswith("__")])
print("\n"*2)
print("Dictionary methods :",end="\n"*2)
print([i for i in dir(dict) if not i.startswith("__")])