Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

def gcditer (a,b) : while if : else: b= return Q.5) (25) What is the outputt of the following script? Write vouneinswer inside the boxes.

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

def gcditer (a,b) : while if : else: b= return Q.5) (25) What is the outputt of the following script? Write vouneinswer inside the boxes. def sun(n) : for i in range(,n): for j in range (,1+1) : print (fun(i,j), end =) print() deffun(n,k):res=1ifk>nk:k=nkforiinrange(,k):res=res+(ni)res=resl/(i+1) return res sun(5) Q.4) (20) What is the output of the following script? Write vour answer inside the boxes. COMPUTER PHOOMAMMINEI Finat Exam Import re withopen("a.txt",mode="rt")asfile1:withopen("b.txt",mode="wt")asfile2:forlinein ifnotre.match(file2. Q.3) (15) What is the output of the following script? Write vour answer inside the boxes: import math def run(): try: x=/ print (x) return math. nan except Exception as e: print(e) return 2 finally: print("Catch me if you can!") return 3 print(run())

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Infrastructure For Medical Research In Databases

Authors: Thomas Heinis ,Anastasia Ailamaki

1st Edition

1680833480, 978-1680833485

More Books

Students also viewed these Databases questions

Question

Explain in detail how the Mughal Empire was established in India

Answered: 1 week ago

Question

Problem: Evaluate the integral: I - -[ze dx

Answered: 1 week ago

Question

2. Describe how technology can impact intercultural interaction.

Answered: 1 week ago