Learn how to take multiple inputs in Python and calculate sum in one line 🚀
This is one of the most important Python questions for exams and beginners 🔥
Code:
num = list(map(int, input().split()))
print(sum(num))
Topics Covered:
Python input
map function
split method
sum function
#python #coding #learnpython #pythontricks #shorts #programming