Python Beginners Tutorial | Collections DICTIONARY | Basic Programming 8

preview_player
Показать описание
________ ONLINE COURSES TO LEARN ________

There are 4 Collection data types in Python

List | Tuple | Set | Dictionary

List [] ordered | indexed | changeable | duplicates
Tuple () ordered | indexed | unchangeable | duplicates
Set {} unordered | unindexed | no duplicates
Dictionary {K:V} unordered | changeable | indexed | no duplicates

Code - Dictionary

my_dict = {
"class" : "animal",
"name" : "giraffe",
"age" : 10
}

print(my_dict)
print(my_dict["name"])

for x in my_dict:
print(my_dict[x])

print(x, y)

my_dict["name"] = "elephant"
print(my_dict)

my_dict["color"] = "grey"
print(my_dict)

print(my_dict)
print(my_dict)

del my_dict["class"]
print(my_dict)

print(my_dict)

del my_dict

#PythonDictionary #Collections #LearnPython

ONLINE COURSES TO LEARN

------------ UI TESTING ------------

------------ API TESTING ------------

------------ MOBILE TESTING ------------

------------ CI | CD | DEVOPS ------------

------------ VERSION CONTROL SYSTEM ------------

------------ PERFORMANCE TESTING ------------

------------ JAVA ------------

------------ MAVEN ------------

------------ OTHERS ------------

------------ Follow ------------
Рекомендации по теме
Комментарии
Автор

Hi Raghav, This is extremely good stuff to get the clear understanding for the python beginners, Could you please also start on the concept like OOPS, Exceptions, static, final, string and also what require for python automation tester.

tapaskhandai
Автор

Thanks for the videos...I am waiting for next session on this video...Watching your video and putting pause and practice So even I am also following step by step....

raghavayoga
Автор

Sir can you make a full length video on xpath where to use @type
and @id all these attributes where to use . Facing difficulty in finding xpath

ravinaidu
Автор

Hi Raghav, do you have tutorial for command line ? It will be great to have your course to cover basics.

simplecode
Автор

Hi Raghav, Thanks for Python basics videos. Could you please upload some advanced topics like functions, OOPS, Exception handling, Collections etc in Python please?

pushpendupaul
Автор

Hi Raghav I'm good with java and I finished your Selenium java framework playlist and now I can create automated tests using java . Should I start with python now ? I mean Does python has new features more than java ?

ahmedagamy
Автор

Are u using virtualbox ? Switching between Mac and windows.. ??

gauravbhatia
Автор

Hi Raghav can you suggest which programming language should I learn first Java or python for automation?
Thanks

mdsarwar
Автор

Hi Raghav your video was awesome .
But mistakenly u uploaded 2 times set collection video and plz can u elaborate more way about class and object (Video 5).
waiting for your response sir.
Jay Hind

trinathsahu