Skip to content

Tag Archives: Python-Output

Prerequisite: Dictionary Note: Output of all these programs is tested on Python3 1.What is the output of the following of code? Attention geek! Strengthen your foundations… Read More
Prerequisite: Python-Sets 1. What is the output of the code shown below? sets = {1, 2, 3, 4, 4} print(sets) Options: {1, 2, 3} {1,… Read More
Prerequisite: Loops and String Note: Output of all these programs is tested on Python3 1. What is the output of the following? my_string = "geeksforgeeks"… Read More
Prerequisite: Loops Note: Output of all these programs is tested on Python3 Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the… Read More
Prerequisite : Boolean Note: Output of all these programs is tested on Python31. What is the output of the code:   Python3 print(bool('False')) print(bool()) False, True None,… Read More
Prerequisite : Tuples Note: Output of all these programs is tested on Python3 1. What will be the output of the following program ? tuple… Read More
1) What is the output of the following program?   PYTHON3 str1 = '{2}, {1} and {0}'.format('a', 'b', 'c') str2 = '{0}{1}{0}'.format('abra', 'cad') print(str1, str2) a)… Read More
1) What is the output of the following program? L = list('123456') L[0] = L[5] = 0 L[3] = L[-2] print(L) a) [0, ‘2’, ‘3’,… Read More
Prerequisite – Tuples and Dictionaryin Python Predict the output of the following Python programs.  1.What is the output of the following program?  Python numberGames = {}… Read More
1) What is the output of the following program? import threading    barrier = threading.Barrier(4)    class thread(threading.Thread):     def __init__(self, thread_ID, thread_name):         threading.Thread.__init__(self)         self.thread_ID =… Read More
Prerequisite – Loops in Python Predict the output of the following Python programs. 1) What is the output of the following program? x = ['ab',… Read More
Prerequisite: Regular Expressions Note: Output of all these programs is tested on Python3 1) Which of the options below could possibly be the output of… Read More
Prerequisite: Dictionary Note: Output of all these programs is tested on Python31) What is the output of the following program?   PYTHON3 D = dict() for x… Read More
Prerequisite: Lists and Tuples 1) What is the output of the following program?   PYTHON List = [True, 50, 10] List.insert(2, 5)    print(List, "Sum is: ",… Read More
Prerequisite: List and Tuples Note: Output of all these programs is tested on Python3 1) What is the output of the following program?  PYTHON L1 =… Read More