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
Nesta página do site você pode assistir ao vídeo on-line @52. PYTHON PROGRAMMING- FILE HANDLING | TEXT FILE duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário KUNDAN TUTORIALS 23 Julho 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 98 vezes e gostou 16 espectadores. Boa visualização!