# Sum of 1 to 100 totalSum = 0 for num in range(101): totalSum = totalSum + num print(totalSum) # Factorial of 10 totalFac = 1 num = 1 while num <= 10: totalFac = totalFac * num num = num + 1 print(totalFac)