Home / Python Math / How to Add Two Numbers in Python In this example we will show how to add two numbers in Python. Source Code a = 2 b = 6 c = a + b print(c) Output: 8