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
Sur cette page du site, vous pouvez voir la vidéo en ligne @52. PYTHON PROGRAMMING- FILE HANDLING | TEXT FILE durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur KUNDAN TUTORIALS 23 juillet 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 98 fois et il a aimé 16 téléspectateurs. Bon visionnage!