Request New Subject
Home
Computer Science Engineering (CSE)
Python Programming
Q. What is the output of the following code?def foo(k): k[0] = 1q = [0]foo(q)print(q) (Solved)
1. [0].
2. [1].
3. [1, 0].
4. [0, 1].
b. [1].
Related Topics
→ Computer Architecture and Organization
→ Microprocessor and Interfacing Technique
→ Computer Networks
→ Data Structure and Algorithms (DSA)
→ Operating System (OS)
→ Artificial Intelligence and Robotics (AIR)
→ Software Project Management (SPM)
→ Computer Fundamentals
→ High Performance Computing (HPC)
→ Data Communication and Computer Network
Subscribe Now
Get All Updates & News
Subscribe