- 6

Python answers

What is the output of this code? >>> x = 3 >>> num = 17 >>> print(num % x) someone should provide me the answer please

20th Oct 2016, 2:10 PM
Kolapo Imam
Kolapo Imam - avatar
38 ответов
+ 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
20th Oct 2016, 2:28 PM
Thomas Hanke
Thomas Hanke - avatar
+ 4
the answer is 2 because when 17 is divided by 3, we get reminder 2.
13th Apr 2018, 9:25 AM
PIYUSH KUMAR SINGH
PIYUSH KUMAR SINGH - avatar
+ 3
Fill in the blanks to print "Yes" if the list contains 'z': letters = ['a', 'b', 'z'] ? "z" ? letters: print("Yes") tell and
15th Jan 2017, 6:05 AM
Someet Shende
Someet Shende - avatar
+ 3
Fill in the blanks to print "Yes" if the list contains 'z': letters = ['a', 'b', 'z'] if "z" in letters: print("Yes")
19th Jan 2017, 8:32 PM
Ambrosio Nguema
Ambrosio Nguema - avatar
+ 3
the answer for module 2 quiz the last question help
14th Mar 2018, 10:54 AM
Thristan Visser
Thristan Visser - avatar
+ 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.
19th Oct 2019, 1:59 PM
steve osman
steve osman - avatar
+ 2
2
17th Nov 2020, 10:14 PM
Dr Moataz Ali
Dr Moataz Ali - avatar
+ 1
letters = ['a', 'b', 'z'] if "z" in letters: print("Yes")
25th Oct 2018, 5:05 PM
Houcem Eddine Aouissaoui
Houcem Eddine Aouissaoui - avatar
+ 1
It will give ans of 2 because % operator will divide 17/3 which gives remainder 2
22nd Jul 2020, 11:54 AM
Ali Mohsin
Ali Mohsin - avatar
0
answer is 2
26th Nov 2016, 4:55 PM
HA.AFRATH SUJA
HA.AFRATH SUJA - avatar
0
:)
28th Oct 2017, 8:14 AM
Sayon Loïc
Sayon Loïc - avatar
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
3rd Jan 2018, 8:28 AM
Tobu 1st fan
Tobu 1st fan - avatar
0
answer : 2(we take the reminder of 17/3) :)
28th Apr 2018, 1:00 PM
Smile
Smile - avatar
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
18th Jan 2019, 2:52 PM
Atebisun David Olaoluwa
Atebisun David Olaoluwa  - avatar
0
2
26th Mar 2020, 11:49 PM
Thandinkosi Mbatha
Thandinkosi Mbatha - avatar
0
2
24th Feb 2021, 5:22 PM
maya elsherbini
maya elsherbini - avatar
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
15th May 2022, 8:50 AM
GUNJI.NARESH BABU
0
fill list. append ('z') print(len)(list))
17th Aug 2022, 8:20 AM
Daveraj Mandloi
Daveraj Mandloi - avatar
0
What will be the output of this code? x = “2” y = “4” z = int(x) + int(y) print(z)
8th Jan 2023, 6:53 PM
MELESE WORKU
0
What will be the output of this code? x = “2” y = “4” z = int(x) + int(y) print(z)
8th Jan 2023, 6:55 PM
MELESE WORKU