What is output of this code?
x = 1
x = 2
What is output of this code? def func(): x = 1 x = 2 func() print(x)
Fuel your ambition, discover your passion and achieve your professional goals with LetsUpgrade.
Sign Up Now
Python coding Def func(x) i = For i in range(x) : I append (i+1) Func (2) Func ([3,2,1) Func (3) In Python what would be the output in each case.
What is output of following code? def func(n): if(n==1): return 1; else: return(n+func(n-1)) print(func(4))