Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
66 views
Python Lab Review
python lab review
Uploaded by
Sheign Nicole Estenor
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save python lab review For Later
Download
Save
Save python lab review For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
66 views
Python Lab Review
python lab review
Uploaded by
Sheign Nicole Estenor
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save python lab review For Later
Carousel Previous
Carousel Next
Save
Save python lab review For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 7
Search
Fullscreen
ciate a = yh DevNet As ‘#1 / Course Inrodueton / Python 11 The Power of Code The Power of Code5 Network Fundamentals 1. Course introduction 181 The Power of Code 2. Lab Python Programming Review Quiz - Python Review ow did you do on the Python Programming Review Lab? Net Developer 2 43, Software Development and ion 4. Understanding and Using Python Programming ® Python is an easy to learn programming language that you will use throughout ths course. \Why should you leam Python? You will need to become familar with basie Python to complete many ofthe labs inthis course. In addition to ths, the Python Essentials course (see the link in ‘Student Resources) names a few factors that make Pytnon a great tool for learning basic ‘coding «ts easy to leam - the time needed to lea Python is shorter than for many other languages; this means that it's possible to start the actual programming faster. «Its easy to use for wrting new software -it's often possible to wirte code faster when using Python + Its easy to obtain, install and deploy ~ Python is ree, open and multiplatform; not all languages can boast that. + fyou'te not fariar with any other languages, Python Is great to begin with, because it will give you a solid foundation and allow you to lear other programming languages (2.9., Ove, Java, oF C) much easier and much faster. Leaming Python is fun and tendy! Lab - Python Programming Review ® ‘This Python Programming Review lab is designed to establish your level of Python expertise bfore you continue with the DevNet Associate course, In this lb, you will complete the folowing objectives: + Part 1: Launch the DEVASG VM + Part 2: Start Python and VS Codeaaa 14 Network Fundamentals v Show Menu ‘Course introduction ~ vytnon “ ‘The Power of Code Python Programming Lab ~ Python Programming Review Quiz = Py 5m Review How did you do on the Python Programming Review Lab? Course introdvetion ‘Summary ‘The DevNet Developer Environment ‘Software Development and Design Understanding and Using APIs + Part 3: Review Data Types and Variables + Part 4: Review Lists and Dictionaries + Part §: Review the Input Function + Part 6: Review If, For, and While Functions + Part 7: Review Methods for File Access a Python Programming Review Quiz - Python Reviewaaa Network Fundamentals Course Introduction ‘The Power of Code Python Programming Review Quiz - Python Review ow did you do on the Python Programming Review Lab? Software Development and Design Understanding and 1A student is learning Python using the interactive interpreter mode. The student issues the commands: >>> routers=[] >>> switches=(] de> devices=[\"RTI\", \'RT2\", \WRT3\", SHY", \'SW2\", \"SH\ D>» devicesedevices + [\*RTA\", \'SwA\"] de> for £ in devices routers append(s) else: switches. append( 4) What isthe result? © Topic 1.3.0 - In Python, two lists can be concatenated by using the + (plus sign) operator. The second lst appends to the frst list and makes a new list. The Python for function is used to loop through the elements in a list and perform an operation on an element. The if statement can be used within the for function to determine the proper action based on the matching condition of each element. Orswel swe, swe, ‘sw’ ‘sive ) rswver, sw, ‘sw’ ‘sw ‘swat, “SW1",‘SW2','SW3'] ‘SW1",‘SW2,,‘SW3']aaa Course Introd ‘The Power of Code R Programming Review Lab? and Usin 2..A student is leaming Python in the interactive interpreter mode. The student issues the ‘commands: >>> devicenamese[\°RTA\", \°RTZ\", \"SWI\", \*SH2\"] >>> devicenaces{-1] What isthe result? (© Topic 1.3.0 - In Python, an item in a list can be referenced and manipulated using its index. The fist item ina ist is indexed as zero, the second is indexed as one, and so on, The last item can also be referenced with an index of [1]. Swi a2’, ‘SW1', ‘SW2'] Orn swe O an error message 2. A developer needs to check the version of the running Python package. Which ‘command shouls the developer use? © Topic 1.3.0 - The command python3 starts Python, but adding the = V option displays the specific version being used. Opvtnons 4 Oprthons Oprthons -« python -Vaaa Network Fundamentals Course Introduction ‘The Power of Code Python Programming Review Quiz - Python Review ow did you do on the Python Programming Review Lab? Software Development and Design Understanding and 4. student is leaming Python in the interactive interpreter mode. The student issues the ‘command: >>> type(True) \What is the data type reported by Python?” © Topic 1.3.0 A type of True or False is a predefined value of the Boolean data type. CO toat O sting Boolean ) Imeger '5. Which Python programming function Is used to display output? (© Topic 1.3.0 - Print is used to display output in a Python programing language interpreter. print Ownite or >) for Check ‘Show Me Resetaaa 14 Network Fundamentals v Show Menu ‘Course introduction ~ vytnon “ ‘The Power of Code Python Programming Lab ~ Python Programming Review (Quiz - Python Review How did you do on the Python Programming Review Lab? Course introdvetion ‘Summary ‘The DevNet Developer Environment ‘Software Development and Design Understanding and Using APIs How did you do on the Python Programming Review (®) Lab? How did you do on your Python Programming Review Lab? If you had trouble with this lab, we recommend you spend some time taking the Pyshon Essentials course liste in the Student Resources page. You'll ind a ink tothe course in the More Courses table near the bottom of that page. I's free, online, and self-paced, Unax ‘Course introduction Summary
You might also like
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
From Everand
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
Mark Manson
4/5 (6124)
Principles: Life and Work
From Everand
Principles: Life and Work
Ray Dalio
4/5 (627)
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
From Everand
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
Brené Brown
4/5 (1148)
Never Split the Difference: Negotiating As If Your Life Depended On It
From Everand
Never Split the Difference: Negotiating As If Your Life Depended On It
Chris Voss
4.5/5 (933)
The Glass Castle: A Memoir
From Everand
The Glass Castle: A Memoir
Jeannette Walls
4/5 (8214)
Grit: The Power of Passion and Perseverance
From Everand
Grit: The Power of Passion and Perseverance
Angela Duckworth
4/5 (631)
Sing, Unburied, Sing: A Novel
From Everand
Sing, Unburied, Sing: A Novel
Jesmyn Ward
4/5 (1253)
The Perks of Being a Wallflower
From Everand
The Perks of Being a Wallflower
Stephen Chbosky
4/5 (8365)
Shoe Dog: A Memoir by the Creator of Nike
From Everand
Shoe Dog: A Memoir by the Creator of Nike
Phil Knight
4.5/5 (860)
Her Body and Other Parties: Stories
From Everand
Her Body and Other Parties: Stories
Carmen Maria Machado
4/5 (877)
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
From Everand
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
Margot Lee Shetterly
4/5 (954)
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
From Everand
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
Ben Horowitz
4.5/5 (361)
Steve Jobs
From Everand
Steve Jobs
Walter Isaacson
4/5 (2922)
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
From Everand
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
Ashlee Vance
4.5/5 (484)
The Emperor of All Maladies: A Biography of Cancer
From Everand
The Emperor of All Maladies: A Biography of Cancer
Siddhartha Mukherjee
4.5/5 (277)
Brooklyn: A Novel
From Everand
Brooklyn: A Novel
Colm Toibin
3.5/5 (2061)
A Man Called Ove: A Novel
From Everand
A Man Called Ove: A Novel
Fredrik Backman
4.5/5 (4972)
Angela's Ashes: A Memoir
From Everand
Angela's Ashes: A Memoir
Frank McCourt
4.5/5 (444)
The Art of Racing in the Rain: A Novel
From Everand
The Art of Racing in the Rain: A Novel
Garth Stein
4/5 (4281)
The Yellow House: A Memoir (2019 National Book Award Winner)
From Everand
The Yellow House: A Memoir (2019 National Book Award Winner)
Sarah M. Broom
4/5 (100)
The Little Book of Hygge: Danish Secrets to Happy Living
From Everand
The Little Book of Hygge: Danish Secrets to Happy Living
Meik Wiking
3.5/5 (447)
The World Is Flat 3.0: A Brief History of the Twenty-first Century
From Everand
The World Is Flat 3.0: A Brief History of the Twenty-first Century
Thomas L. Friedman
3.5/5 (2283)
Bad Feminist: Essays
From Everand
Bad Feminist: Essays
Roxane Gay
4/5 (1068)
Yes Please
From Everand
Yes Please
Amy Poehler
4/5 (1987)
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
From Everand
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
Gilbert King
4.5/5 (278)
The Outsider: A Novel
From Everand
The Outsider: A Novel
Stephen King
4/5 (1993)
The Woman in Cabin 10
From Everand
The Woman in Cabin 10
Ruth Ware
3.5/5 (2619)
A Tree Grows in Brooklyn
From Everand
A Tree Grows in Brooklyn
Betty Smith
4.5/5 (1936)
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
From Everand
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
Viet Thanh Nguyen
4.5/5 (125)
Team of Rivals: The Political Genius of Abraham Lincoln
From Everand
Team of Rivals: The Political Genius of Abraham Lincoln
Doris Kearns Goodwin
4.5/5 (1912)
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
From Everand
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
Dave Eggers
3.5/5 (692)
Wolf Hall: A Novel
From Everand
Wolf Hall: A Novel
Hilary Mantel
4/5 (4074)
On Fire: The (Burning) Case for a Green New Deal
From Everand
On Fire: The (Burning) Case for a Green New Deal
Naomi Klein
4/5 (75)
Fear: Trump in the White House
From Everand
Fear: Trump in the White House
Bob Woodward
3.5/5 (830)
Rise of ISIS: A Threat We Can't Ignore
From Everand
Rise of ISIS: A Threat We Can't Ignore
Jay Sekulow
3.5/5 (143)
Manhattan Beach: A Novel
From Everand
Manhattan Beach: A Novel
Jennifer Egan
3.5/5 (901)
John Adams
From Everand
John Adams
David McCullough
4.5/5 (2530)
The Light Between Oceans: A Novel
From Everand
The Light Between Oceans: A Novel
M L Stedman
4.5/5 (790)
Datacomms 4 Prelims
PDF
No ratings yet
Datacomms 4 Prelims
37 pages
XML Prelim Exam
PDF
No ratings yet
XML Prelim Exam
19 pages
Software Development Cisco
PDF
No ratings yet
Software Development Cisco
8 pages
Week 2 - ITE 6201E - Ethics and Ethical Responsibilities
PDF
No ratings yet
Week 2 - ITE 6201E - Ethics and Ethical Responsibilities
46 pages
The Unwinding: An Inner History of the New America
From Everand
The Unwinding: An Inner History of the New America
George Packer
4/5 (45)
Little Women
From Everand
Little Women
Louisa May Alcott
4/5 (105)
The Constant Gardener: A Novel
From Everand
The Constant Gardener: A Novel
John le Carré
3.5/5 (109)
Related titles
Click to expand Related Titles
Carousel Previous
Carousel Next
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
From Everand
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
Principles: Life and Work
From Everand
Principles: Life and Work
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
From Everand
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
Never Split the Difference: Negotiating As If Your Life Depended On It
From Everand
Never Split the Difference: Negotiating As If Your Life Depended On It
The Glass Castle: A Memoir
From Everand
The Glass Castle: A Memoir
Grit: The Power of Passion and Perseverance
From Everand
Grit: The Power of Passion and Perseverance
Sing, Unburied, Sing: A Novel
From Everand
Sing, Unburied, Sing: A Novel
The Perks of Being a Wallflower
From Everand
The Perks of Being a Wallflower
Shoe Dog: A Memoir by the Creator of Nike
From Everand
Shoe Dog: A Memoir by the Creator of Nike
Her Body and Other Parties: Stories
From Everand
Her Body and Other Parties: Stories
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
From Everand
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
From Everand
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
Steve Jobs
From Everand
Steve Jobs
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
From Everand
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
The Emperor of All Maladies: A Biography of Cancer
From Everand
The Emperor of All Maladies: A Biography of Cancer
Brooklyn: A Novel
From Everand
Brooklyn: A Novel
A Man Called Ove: A Novel
From Everand
A Man Called Ove: A Novel
Angela's Ashes: A Memoir
From Everand
Angela's Ashes: A Memoir
The Art of Racing in the Rain: A Novel
From Everand
The Art of Racing in the Rain: A Novel
The Yellow House: A Memoir (2019 National Book Award Winner)
From Everand
The Yellow House: A Memoir (2019 National Book Award Winner)
The Little Book of Hygge: Danish Secrets to Happy Living
From Everand
The Little Book of Hygge: Danish Secrets to Happy Living
The World Is Flat 3.0: A Brief History of the Twenty-first Century
From Everand
The World Is Flat 3.0: A Brief History of the Twenty-first Century
Bad Feminist: Essays
From Everand
Bad Feminist: Essays
Yes Please
From Everand
Yes Please
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
From Everand
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
The Outsider: A Novel
From Everand
The Outsider: A Novel
The Woman in Cabin 10
From Everand
The Woman in Cabin 10
A Tree Grows in Brooklyn
From Everand
A Tree Grows in Brooklyn
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
From Everand
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
Team of Rivals: The Political Genius of Abraham Lincoln
From Everand
Team of Rivals: The Political Genius of Abraham Lincoln
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
From Everand
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
Wolf Hall: A Novel
From Everand
Wolf Hall: A Novel
On Fire: The (Burning) Case for a Green New Deal
From Everand
On Fire: The (Burning) Case for a Green New Deal
Fear: Trump in the White House
From Everand
Fear: Trump in the White House
Rise of ISIS: A Threat We Can't Ignore
From Everand
Rise of ISIS: A Threat We Can't Ignore
Manhattan Beach: A Novel
From Everand
Manhattan Beach: A Novel
John Adams
From Everand
John Adams
The Light Between Oceans: A Novel
From Everand
The Light Between Oceans: A Novel
Datacomms 4 Prelims
PDF
Datacomms 4 Prelims
XML Prelim Exam
PDF
XML Prelim Exam
Software Development Cisco
PDF
Software Development Cisco
Week 2 - ITE 6201E - Ethics and Ethical Responsibilities
PDF
Week 2 - ITE 6201E - Ethics and Ethical Responsibilities
The Unwinding: An Inner History of the New America
From Everand
The Unwinding: An Inner History of the New America
Little Women
From Everand
Little Women
The Constant Gardener: A Novel
From Everand
The Constant Gardener: A Novel