In this video, you will learn about file modes & how to read data from a text file.
Functions for reading data from files:
1. read()-Reads at most n bytes ; if no n is specified , reads the entire file.
Returns the read bytes in the form of a string.
2. readline()-Reads a line of input ; if n is specified reads at most n bytes.
Returns the read bytes in the form of a string ending with ‘\n’ character.
Returns a blank string if no more bytes are left for reading in the file.
3. readlines()-Reads all the lines of a text file.
Returns in the form of list.
Dear Friends, please help this channel to grow. I will keep uploading quality python tutorial for you.
Please like, share n subscribe my channel.
Python Introduction:
• Python Introduction | What is Python | Why...
Python modes:
• INTERACTIVE V/S SCRIPT MODE | HOW TO SAVE ...
Python Tokens:
• Python Fundamentals | TOKEN | KEYWORDS | I...
Static v/s Dynamic Typing:
• Static V/S Dynamic Typing | CBSE CLASS - X...
Variable# Datatype# Type Casting:
• Variable| Datatype | Operators | Type Cast...
String Data type:
• String Data type in Python | String Slicin...
String Functions:
• String Functions in Python | Class 12 Pyth...
List in Python:
• List in Python |List methods |Class 12 Lis...
Dictionary in Python:
• Dictionary Methods Live Demonstration of P...
Conditional Statements:
• Conditional Statements in Python| Flow of ...
Loops in Python:
• Looping in Python Class 11 | while and for...
Range Function:
• for loop in python | range function | pyth...
Factorial Program:
• Factorial Program in Python| To calculate ...
Jump Statements:
• Jump Statements (break and continue) | Loo...
Functions in Python:
• Functions in Python | Types of function | ...
User Defined Functions:
• User defined function in Python | Python F...
Arguments & Parameters:
• Arguments & parameters in Python | Python ...
Playlist:
Computer Science with Python Class 12:
• Python Tutorial for beginners | CBSE Class...
String Data type:
• String Data type | String Slicing | String...
Flow Control (Conditional & Iterative Statements):
• Conditional & Iterative Statements
Function in Python:
• Functions in Python | Types of functions |...
#PrachiTheEducator
#cbse
#board exam
#how to study python
#class 12 python
#python for class 12
#computer science
#computer science for class 12
#python tutorial in hindi
python
#programming
#filehandling