Urgent question Python

Asked

Viewed 38 times

-3

Knowing the number of the specific line in a TXT file, how do I convert all the text of that line into a String type variable?

For example: I have line 5 written : "Hello world"; and I want to turn "Hello World" into a String type variable knowing only the line number.

  • Hello, Pierre. We closed your question earlier and clarified in the comments what should be done to improve it. Instead of doubling the question, you should edit the same and provide a [mcve]. If you don’t understand how the site works and how you should ask here, I suggest a reading on [help].

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.