No products in the cart.

Write a program to add “ …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Write a program to add “ Hello “ in a text file “book.txt”.
  • 2 answers

Simran Jeet 4 years, 1 month ago

Kanishka i think the file should be opened in append mode

Kanishka Jha 4 years, 1 month ago

F=open("book","w") F.write("Hello") F.close()
http://mycbseguide.com/examin8/

Related Questions

What are called tokens
  • 2 answers
What is mean by buffering in file handling?
  • 1 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App