Notifications
Clear all

What can you deduce from the following statement? (Select two answers)

1 Posts
1 Users
0 Likes
142 Views
(@casausisaiah)
Posts: 710
Noble Member
Topic starter
 

What can you deduce from the following statement? (Select two answers)

str = open('file.txt', "rt")

  • A . str is a string read in from the file named file.txt
    B. a newlina character translation will be performed during the reads
    C. if file. txt does not exist, it will be created
    D. the opened file cannot be written with the use of the str variable

Show Answer Hide Answer

Suggested Answer: A ,D
 
Posted : 07/02/2023 8:42 pm
Topic Tags

Latest Python Institute PCAP-31-03 Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: