What will be the output of the following Python statement?
>>>"a"+"bc"
What is meant by POCCO?
What will be the output of the following Python code?
What is the output of the given code?
def func(tup,x):
return tup.count(x)
tuple=(1,5,6,7,5,6,1,6,6)
en=5
z=func(tuple,en)
print(z)
x = raw_input ("hello world")
print "every developer's first program is- %r" %
Which of these is not true about recursion?
The output of the code shown is similar to the letter ______.
import turtle
t=turtle.Pen()
t1=turtle.Pen()
t2=turtle.Pen()
t.forward(100)
t1.forward(100)
t2.forward(100)
t1.left(90)
t1.forward(75)
t2.right(90)
t2.forward(75)
(This program is in python 2.7)
print "enter an integer"
x= int(input()) #user input is '5'
print "what is the output?", type(3+x)
What will be the output of the following Python code snippet?
l = [1, 2, 4, 5, 2, 'xy', 4]
print(set(l))
print(l)
def func( mylist ):
"This changes a passed list into this function"
mylist = [1,2,3,4]; # This would assign new reference in mylist
print ("Values inside the function: ", mylist)
return
mylist = [10,20,30];
func( mylist );
print ("Values outside the function: ", mylist)