Hand shakes
Input=5
Output=10
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?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment