You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# WAP to make a function and pass a dictionary in the function and save the dictionary values by creating a csv file. But while creating a file do the same as above question , 1st read , if the file is found then append the dictionary and if not found , handle that error and create a new file.
import csv
def funct(dict):
try:
open("temp_file.txt","r")
except:
print("File does not exists but I will create it")