What is the output of the Python code?
x = 20
if x < 10:
print("Less than 10")
elif x < 20:
print("Less than 20")
elif x < 30:
print("Less than 30")
else:
print("30 or more")
a) Less than 10
b) Less than 20
c) Less than 30
d) 30 or more
What is output of the Python code?
y = 8
if y > 10:
print("y is greater than 10")
elif y < 10 and y > 5:
print("y is between 5 and 10")
else:
print("y is 5 or less")
a) y is greater than 10
b) y is between 5 and 10
c) y is 5 or less
d) Error
What is the output of the Python code?
x = 10
if x > 5:
print("x is greater than 5")
elif x == 10:
print("x is 10")
else:
print("x is less than or equal to 5")
a) x is greater than 5
b) x is 10
c) x is less than or equal to 5
d) No output
What will be the output of the following Python code?
my_dict = {'a': 1, 'b': 2, 'c': 3}
for key in my_dict:
print(key, end=' ')
print()
a) a b c
b) 1 2 3
c) a: 1 b: 2 c: 3
d) a b c 1 2 3
What will be the output of the following Python code?
my_dict = {'a': 1, 'b': 2, 'c': 3}
for key, value in my_dict.items():
if value % 2 == 0:
print(key)
a) a
b) b
c) c
d) a, c
What will be the output of the following Python code?
s = {1, 2, 3, 4}
for i in range(5):
if i in s:
continue
else:
print(i)
a) 0
b) 4
c) 0, 4
d) No output
What will be the output of the following Python code?
s1 = {1, 2, 3, 4}
s2 = {3, 4, 5, 6}
print(s1.intersection(s2))
a) {1, 2}
b) {3, 4}
c) {5, 6}
d) Error
26 Followers 296 Following🌟I’m into deep learning, ML, and generative AI—mainly because I enjoy figuring out how things work and using that to build stuff that’s actually useful .
1K Followers 2K FollowingFollow Me & Get 💯follow back
✨ Tech Enthusiast
🚀 Aspiring SD, Building Tomorrow
📚 Lifelong Learner | 🖋️ Exploring New Tech
🌍 India | Innovation is my fuel
125 Followers 882 FollowingJason D. Vandiver Owner of Sonavan Global Enterprises and Artist Inspired By: Eminem's Debut Album "The Slim Shady LP" Dropped in 1999
554K Followers 131 FollowingFather of three, Creator of Ruby on Rails + Omarchy, Co-owner & CTO of 37signals, Shopify director, NYT best-selling author, and Le Mans 24h class-winner.
14K Followers 1 Following💳 Teaching Americans how to earn residuals with CashSwipe . 📈 8-figure freedom- now I help others do the same. DM “Swipe’ me for more info
33K Followers 525 FollowingSharing insights on AI & simplifying tech for everyone | Trusted by top AI & SaaS | DM open for collaborations ✉️ [email protected]
29K Followers 710 FollowingLeading farm business magazine providing agriculture news & commodity updates. Your first source for farm risk management and marketing information.
220K Followers 38 FollowingI'm Brando- Options trader for 14 years. 📈 8 figures in profit day trading 💰 Based out of Las Vegas 🎲 I'm here to share my knowledge and help others
2.5M Followers 2K FollowingStocks/Options/Crypto/Market News + Tools. Not advice
Get a bonus opening a new tastytrade account: https://t.co/wGf2ZdlXpw
Discord: https://t.co/0xJ9e0ZYYG
More: https://t.co/nsxZlPV0pC
150K Followers 7 Following@Harvard's introduction to the intellectual enterprises of computer science and the art of #programming, taught by @davidjmalan. Verify at https://t.co/FhE8Tv95yY.
18K Followers 145 FollowingCORE - AI, Tech & Marketing
💡 I talk about Latest AI News & Game changing AI Tools
📹 Weekly Informative videos
YT🔗https://t.co/zmz3bgQ2E5
📩 DM for Collab
637K Followers 35 FollowingWe're an AI safety and research company that builds reliable, interpretable, and steerable AI systems. Talk to our AI assistant @claudeai on https://t.co/FhDI3KQh0n.
4.3M Followers 3 FollowingOpenAI’s mission is to ensure that artificial general intelligence benefits all of humanity. We’re hiring: https://t.co/dJGr6Lg202
686K Followers 127 FollowingThe nonprofit organization behind the Python programming language. For help with Python code: https://t.co/XDHPttz2Xv
On Mastodon: @[email protected]
147K Followers 1K FollowingA place for all things related to the #python #programming #coding #webdeveloper #webdevelopment #pythonprogramming #ai #ml #machinelearning #datascience ...
148K Followers 147 FollowingLinux and Open Source Web Portal 🐧
Follow us to
- Get the latest Linux and Open Source news 📰
- Learn Linux tips and tutorials 💡
- Enjoy Linux memes 🤣
No recent Favorites. New Favorites will appear here.