Answer to Question #318709 in Python for Krishnaveni Swarga

Question #318709

Hand shakes




Input=5




Output=10

1
Expert's answer
2022-03-26T15:29:40-0400
n = int(input("Input number of person (N): "))
total = 0
for i in range(n-1, 0, -1):
    total += i
print(f"Total number of handshakes: {total}")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS