Start learning 50% faster. Sign in now
Get Started with ixamBee
Start learning 50% faster. Sign in nowIn Python, arguments are passed to functions using pass-by-object-reference , a hybrid approach where the behavior depends on the object’s mutability. For mutable objects (e.g., lists, dictionaries), functions can modify the object directly, as the reference points to the same memory location. For immutable objects (e.g., integers, strings), any attempt to modify them results in a new object being created, leaving the original object unchanged. For example: def modify_list(lst): lst.append(4) my_list = [1, 2, 3] modify_list(my_list) print(my_list) # Output: [1, 2, 3, 4] In the case of immutables: def modify_int(x): x += 1 num = 5 modify_int(num) print(num) # Output: 5 This illustrates that Python’s approach is neither traditional pass-by-value nor pass-by-reference. Why Other Options Are Incorrect:
Which company has recently received DoT approval to operate satellite internet in India, becoming the third such company?
Which country became the first to approve the popular election of judges at all levels?
“Take a break feature globally” is launched by which social media platform recently ?
India has become Bangladesh's leading export partner by surpassing which two countries?
Who among the Following has been elected as Hong Kong’s Next leader?
Which bank has unveiled new services under its digital transformation initiative — Project WAVE and accordingly has collaborated with National E-Gov...
What led to the permanent closure of the Afghanistan Embassy in Delhi, effective from November 23?
In which Indian state is now home to the world's first 3D-printed temple, featuring sanctums dedicated to Lord Ganesha, Lord Shankar, and Goddess Parvati?
What is the primary focus of EX TIGER TRIUMPH – 24, the bilateral tri-Service Humanitarian Assistance and Disaster Relief (HADR) Exercise between Indi...
The AI Kiran initiative will be hosted on which digital platform for outreach?