| Chapter 1 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
31 |
|
Delete Content |
| Chapter 1 - Computer Science |
text |
N otes • Whensyntaxerrorisencountered,Pythondisplays the ... |
32 |
|
Delete Content |
| Chapter 1 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
33 |
|
Delete Content |
| Chapter 1 - Computer Science |
text |
• The statements inside the finally block are always exec... |
34 |
|
Delete Content |
| Chapter 1 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
35 |
|
Delete Content |
| Chapter 1 - Computer Science |
text |
8. You have learnt how to use math module in Class N otes... |
36 |
|
Delete Content |
| Chapter 2 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
1 |
|
Delete Content |
| Chapter 2 - Computer Science |
text |
a p t e C h r File Handling in 2 Python programs.Peopleof... |
2 |
|
Delete Content |
| Chapter 2 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
3 |
|
Delete Content |
| Chapter 2 - Computer Science |
text |
So, what is a file? A file is a named location on a secon... |
4 |
|
Delete Content |
| Chapter 2 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
5 |
|
Delete Content |
| Chapter 2 - Computer Science |
text |
2.2.2 Binary Files Binary files are also stored in terms ... |
6 |
|
Delete Content |
| Chapter 2 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
7 |
|
Delete Content |
| Chapter 2 - Computer Science |
text |
• <file.mode> returns the access mode in which the file w... |
8 |
|
Delete Content |
| Chapter 2 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
9 |
|
Delete Content |
| Chapter 2 - Computer Science |
text |
In the above statement, the file myfile.txt is opened N o... |
10 |
|
Delete Content |
| Chapter 2 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
11 |
|
Delete Content |
| Chapter 2 - Computer Science |
text |
hand, in append mode, new data will be added at the For a... |
12 |
|
Delete Content |
| Chapter 2 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
13 |
|
Delete Content |
| Chapter 2 - Computer Science |
text |
write(), the writelines() method does not return the Acti... |
14 |
|
Delete Content |
| Chapter 2 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
15 |
|
Delete Content |
| Chapter 2 - Computer Science |
text |
2.5.2 The readline([n]) method This method reads one comp... |
16 |
|
Delete Content |
| Chapter 2 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
17 |
|
Delete Content |
| Chapter 2 - Computer Science |
text |
>>> for line in d: words=line.split() print(words) ['Hell... |
18 |
|
Delete Content |
| Chapter 2 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
19 |
|
Delete Content |