Question: What will happen if you run the following code and there is no file called python.txt in the current directory? FileNotFoundError It creates a new

 What will happen if you run the following code and there
is no file called python.txt in the current directory? FileNotFoundError It creates
a new file "python.txt" Nothing happens None of the above Consider the

What will happen if you run the following code and there is no file called python.txt in the current directory? FileNotFoundError It creates a new file "python.txt" Nothing happens None of the above Consider the function foo1. What will be the output if foo1 (1,2) is called? def fool(num1, num2): try: return num1 + nun2 +0/1 except: return "NewException" 3.0 4.0 NewException Zerobivision Error Always Which one of the following functions is used to write the string "Radio Gaga" in a fle that was opened in write mode and assigned to the variable queen? queen = open("Radio Gaga", 'w') write_on_queen("Radio Gaga") queen.w(Radio Gaga") queen.write('Radio. Gaga") Conscer the function foor What will be the output if fooi(t, 2) is called

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!