send mail to support@abhimanu.com mentioning your email id and mobileno registered with us! if details not recieved
Resend Opt after 60 Sec.
By Loging in you agree to Terms of Services and Privacy Policy
Claim your free MCQ
Please specify
Sorry for the inconvenience but we’re performing some maintenance at the moment. Website can be slow during this phase..
Please verify your mobile number
Login not allowed, Please logout from existing browser
Please update your name
Subscribe to Notifications
Stay updated with the latest Current affairs and other important updates regarding video Lectures, Test Schedules, live sessions etc..
Your Free user account at abhipedia has been created.
Remember, success is a journey, not a destination. Stay motivated and keep moving forward!
Refer & Earn
Enquire Now
My Abhipedia Earning
Kindly Login to view your earning
Support
Type your modal answer and submitt for approval
What will be the output of the following code snippet?
# Open a file in read-write mode
fo = open("myfile.txt", "w+")
print ("Name of the file: ", fo.name)
# Assuming file has the following line
txt = "This is 1st line,"
fo.writelines( txt )
seq = " This is 2nd line, This is 3rd line"
# Write sequence of lines at the end of the file.
fo.seek(0, 2)
fo.writelines( seq )
# Now read complete file from beginning.
fo.seek(0,0)
line = fo.readlines()
print ("Read Line: %s" % (line))
# Close the file
fo.close()
Name of the file: myfile.txt Read Line: [‘This is 1st line, This is 2nd line, This is 3rd line’]
Name of the file: myfile.txt Read Line: [‘ This is 2nd line, This is 3rd line’]
Read Line: [ ‘This is 1st line’]
Runtime Error
By: santosh ProfileResourcesReport error
Access to prime resources
New Courses