10 | Read and Write Files in Python: Load a Cart and Save a Receipt
Description: Learn to read data from a file and write results to a file in Python. You load the items of a cart from a text file and save a receipt.
In this lesson:
- Open a file with open()
- Read items from a text file
- Write a receipt to a file
- Close files safely
Previous lesson: Python String Functions for Testers https://youtu.be/sVXPwMURpqE
Next lesson: Python Classes for Testers https://youtu.be/-RMQFfzd3zY
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
In this lesson:
- Open a file with open()
- Read items from a text file
- Write a receipt to a file
- Close files safely
Previous lesson: Python String Functions for Testers https://youtu.be/sVXPwMURpqE
Next lesson: Python Classes for Testers https://youtu.be/-RMQFfzd3zY
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
