n = int(input("Enter a number: "))
sum_of_numbers = n * (n + 1) // 2
print(f"The sum of the first {n} natural numbers is: {sum_of_numbers}")
#source code --> clcoding.com
Python Developer December 02, 2024 100 Python Programs for Beginner No comments
n = int(input("Enter a number: "))
sum_of_numbers = n * (n + 1) // 2
print(f"The sum of the first {n} natural numbers is: {sum_of_numbers}")
#source code --> clcoding.com
Free Books Python Programming for Beginnershttps://t.co/uzyTwE2B9O
— Python Coding (@clcoding) September 11, 2023
Top 10 Python Data Science book
— Python Coding (@clcoding) July 9, 2023
🧵:
Top 4 free Mathematics course for Data Science ! pic.twitter.com/s5qYPLm2lY
— Python Coding (@clcoding) April 26, 2024
Web Development using Python
— Python Coding (@clcoding) December 2, 2023
🧵:
0 Comments:
Post a Comment