- 6
Python answers
What is the output of this code? >>> x = 3 >>> num = 17 >>> print(num % x) someone should provide me the answer please
37 Answers
+ 12
2
You know why?
You write
>>> x = 3
>>> num = 17
>>> print (num% x)
this means
>>> print (17% 3)
This yields, according to modulo (5 * 3 = 15), residue 2
+ 4
the answer is 2 because when 17 is divided by 3, we get reminder 2.
+ 3
Fill in the blanks to print "Yes" if the list contains 'z':
letters = ['a', 'b', 'z']
? "z" ?
letters:
print("Yes")
tell and
+ 3
Fill in the blanks to print "Yes" if the list contains 'z':
letters = ['a', 'b', 'z']
if "z" in letters:
print("Yes")
+ 3
the answer for module 2 quiz the last question help
+ 3
Drag and drop from the options below to add 'z' to the end of the list and print the list's length.
list. ('z')
print( ) )
insert len append (list) index.
What go in the gap.
+ 2
2
+ 1
letters = ['a', 'b', 'z']
if "z" in letters:
print("Yes")
+ 1
It will give ans of 2 because % operator will divide 17/3 which gives remainder 2
0
answer is 2
0
:)
0
class Person:
def __init__(self, name):
self._name = name
@property
def name(self):
return self._name
__________
def name(self, value):
self._______= value
some one please help i know the bottom one is _name
0
answer : 2(we take the reminder of 17/3) :)
0
Fill in the blanks to print "Yes" if the list contains 'z':
letters = ['a', 'b', 'z']
_ "z" _
letters:
print("Yes")
guys need urgent answer
0
2
0
2
0
You are given the following list:
names = ["John", "Oscar", "Jacob"]
PY
Complete the program to create a file where you write the names from the list, each on a new line, and separately output them.
Output
John
Oscar
Jacob
Reme
0
fill list. append ('z')
print(len)(list))
0
What will be the output of this code?
x = “2”
y = “4”
z = int(x) + int(y)
print(z)
0
What will be the output of this code?
x = “2”
y = “4”
z = int(x) + int(y)
print(z)