Computer Science, asked by pracheesingh8, 7 months ago

Give the output of the following when num1 = 4, num2 = 3, num3 = 2 a) num1 += num2 + num3 b) print (num1) c) num1 = num1 ** (num2 + num3) d) print (num1) e) num1 **= num2 + c f) num1 = '5' + '5' g) print(num1) h) print(4.00/(2.0+2.0)) i) num1 = 2+9*((3*12)-8)/10 j) print(num1) k) num1 = float(10) l) print (num1) m) num1 = int('3.14')

Answers

Answered by InsaneRahul
58

Answer:

a) you can write as // num1= num1+num2+num3

so b) print(num1) =4+3+2 = 9

c) num1= num1**(num2+um3) ///a**b = a^b

= num1 ^( num2+num3)

= 4^( 3+2)

= 4^(5)

= 1024

d) num1 = 1024

e) num1 **= num2 + c

= 1025^3+1024

= ans

f) i think it will be consider as string but you confirm with other from my side it will be like

num1= '5'+'5' /// String Concatenation

g) num1= 55

j) num1= 27.2

k) num1= float(10)

l) num= 10.0

m) num= int(3.14) ///int() function

The int() function converts the specified value into an integer number.

The int() function returns an integer object constructed from a number or string x, or return 0 if no arguments are given.

//// i would suggest to check and cross verify answer i might be wrong its been long period i have left programming ////

Answered by ranisoni576574
3

Answer:

your answer

Explanation:

hope it helps you

Attachments:
Similar questions