🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

a और b वेरिएबल का डेटा टाइप क्या होगा?

What will be the data types of variables a and b?


var a = 10
var b = "Manish"

A
Int and int
B
Int and str
C
str and int
D
str and str
Explanation

a = 10
b = "Manish"

इसमें:

  • a को assign किया गया है 10 → यह एक integer है

  • b को assign किया गया है "Manish" → यह एक string है


🔍 Data types:

 
print(type(a))  # <class 'int'>
print(type(b))  # <class 'str'>

Correct Answer: B) Int and str

Latest Updates