Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
Recent questions tagged Python-question-answers
0
votes
Q: What will be the output of the following Python program? def foo(x): x[0] = ['def'] x[1] = ['abc'] return id(x) q = ['abc', 'def'] print(id(q) == foo(q))
What will be the output of the following Python program? def foo(x): x[0] = ['def'] x[1] = ['abc'] return id(x) q = ['abc ... (id(q) == foo(q)) a) Error b) None c) False d) True...
asked
Jan 2, 2023
in
Technology
by
JackTerrance
python-question-answers
0
votes
Q: What will be the output of the following Python code? class tester: def __init__(self, id): self.id = str(id) id="224" >>>temp = tester(12) >>>print(temp.id)
What will be the output of the following Python code? class tester: def __init__(self, id): self.id = str(id) id="224" >>>temp ... >>>print(temp.id) a) 12 b) 224 c) None d) Error...
asked
Jan 2, 2023
in
Technology
by
JackTerrance
python-question-answers
0
votes
Q: What will be the output of the following Python code? x = 'abcd' for i in x: print(i.upper())
What will be the output of the following Python code? x = 'abcd' for i in x: print(i.upper()) a)a B C D b) a b c d c) error d)A B C D...
asked
Jan 2, 2023
in
Technology
by
JackTerrance
python-question-answers
0
votes
Q: The following python program can work with ____ parameters. def f(x): def f1(*args, **kwargs): print("Sanfoundry") return x(*args, **kwargs) return f1
The following python program can work with ____ parameters. def f(x): def f1(*args, **kwargs): print("Sanfoundry") return x(*args, * ... ) return f1 a) any number of b) 0 c) 1 d) 2...
asked
Jan 2, 2023
in
Technology
by
JackTerrance
python-question-answers
To see more, click for the
full list of questions
or
popular tags
.
...