Python Programming for Beginners Provides:
Full course of Python in Hindi
Also includes the Syllabus of Classes XIth & XIIth.
Easy Learning Classes to explain the file handling in python:
two type of file:
1. text file: 'r'-read, 'w'-write, 'a'-append , ,w+'-write read , 'r+'-read write, 'a+'-append read
for reading: read(), read(n), readline() , readlines(), readline(n)
for writing : write(), writelines()
2. binary file :rb'-read, 'wb'-write, 'ab'-append , ,wb+'-write read , 'rb+'-read write, 'ab+'-append read
try some questions:
1.WAF to read lines from text file and display those words which are less than 4 characters.
2.WAF to read lines from text file and count the number of lines which starts with 'H' character.
3.WAF to read lines from text file and count the number of times "my" occurs in the file.
4.WAF to read a file from text file and count the number of times 'a' occurs in the file.
5.WAF to read lines from text file and replace the 'a' with 'e' and display.
6.WAF to read lines from text file and count the number of lines which starts and end with vowels
LINK RELATED PROGRAMS :https://github.com/saritaverma60/pyth...
LINK FOR COMPLETE PLAYLIST : • Video
FACEBOOK LINK: https://www.facebook.com/Kundan-Tutor...
#Kundantutorials#python#filehandling#textfile #readfile #writefile
На этой странице сайта вы можете посмотреть видео онлайн @52. PYTHON PROGRAMMING- FILE HANDLING | TEXT FILE длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь KUNDAN TUTORIALS 23 Июль 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 98 раз и оно понравилось 16 зрителям. Приятного просмотра!