Simple Python Code
Here's a simple Python code that calculates the sum of numbers from 1 to 10:
# Calculate the sum of numbers from 1 to 10
sum_numbers = sum(range(1, 11))
print("The sum of numbers from 1 to 10 is:", sum_numbers)
When you run this code, it will print the sum, which is 55.
Comments
Post a Comment