반응형
반응형

https://codecrazypy.blogspot.com/2023/03/python-mcqs-quiz-1.html

 

Python MCQ's Quiz-1

Here you can find some infomation about exams,educational events and how to prepare for competitive exams likes ssc gd, railway exams,

codecrazypy.blogspot.com

What will be the datatype of the var in the below code snippet?
var = 10
print(type(var))
var = "Hello"
print(type(var))

반응형
반응형

[python] 구문 퀴즈, 파이썬

""" 
# What will be the output?
    A.Infinite loop
    B.120
    C.47
    D.48
"""
def rec(a,b):
    if a == 0:
        return b
    else:
        return rec(a - 1, a + b)

print(rec(8, 12))

# 48

 

반응형
반응형

https://github.com/ngio/python_study/blob/main/true_false_quiz.py

 

GitHub - ngio/python_study: python, konply, numpy, matplotlib, networkx, pandas

python, konply, numpy, matplotlib, networkx, pandas - GitHub - ngio/python_study: python, konply, numpy, matplotlib, networkx, pandas

github.com

 

    What will be the output? 
    A.True
    B.False
    C.Error
    D.None of above 

"""_summary_
    What will be the output? 
    A.True
    B.False
    C.Error
    D.None of above
"""

a = True
b = False

print(a or a and b and a)

"""
    True
"""
반응형

+ Recent posts