Skip to content
Y
yTube.SITE v8.0.4
media / worlds / tools / internet oddities
YouTube / video information

6 | Python Functions for Testers: def, return and try / except

Video information, playback and saved actions.

6 | Python Functions for Testers: def, return and try / except

Description: Learn Python functions the way testers use them: write a function with def, give it values, return a result and handle errors with try and except.

In this lesson:
- Define a function with def
- Pass values in and get a result back with return
- Reuse the same code instead of copying it
- Handle an error with try and except

Previous lesson: Python Loops and if / else for Testers https://youtu.be/HpeD_cZ09IU
Next lesson: Python Lists and Dictionaries for Testers https://youtu.be/FC8N2hLvHJo

Free course on Udemy, with two short quizzes: https://www.udemy.com/course/python-and-git-for-testers-learn-coding-for-test-automation/?referralCode=DDD96CB2D94250E08531
Full playlist, in order: https://www.youtube.com/playlist?list=PLbdk4_6KQS2o
Code for this course: https://github.com/anuradha-learn/python-pytest-bridge
Website: https://anuradhaagarwal.com
LinkedIn: https://www.linkedin.com/in/anuradhaagarwal

About me: I am Anuradha Agarwal, a test automation specialist and trainer with decades of industry and teaching experience, and a Master's degree in Data Science. This channel is about modern QA testing. Subscribe if you want more lessons like this.

If this lesson helped you, write one line in the comments about what you built or what you got stuck on. Close description
      
Videos related to "6 | Python Functions for Testers: def, return and try / except"

Related videos are temporarily unavailable.

Try again, or come back later.