MCQs > IT & Programming > Python > Output of the following Python language code? import threading def p_c(num): print('[}'.format(num ‘ num ‘ num)) def p_s(num): print('[}'.format(num ’ num)) if _name_ = '_main_': t1 = threading.Thread(target=p_s. args=l10.)) t2 = threading.Thread(target=p_c, args=(10,)) t1.start() t2.start0 11.join0 t2.join() prinl('1')

Python MCQs

What will be the correct output of the following Python language code?

import threading

def p_c(num):

print("[}".format(num ‘ num ‘ num))

def p_s(num):

print("[}".format(num ’ num))

if _name_ = "_main_":

t1 = threading.Thread(target=p_s. args=l10.))

t2 = threading.Thread(target=p_c, args=(10,))

t1.start()

t2.start0

11.join0

t2.join()

prinl("1")


Answer

Correct Answer: 100 1000 1

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it