#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jan 20 15:10:42 2022 @author: richardson """ # small comment """ large comment """ """ Loops """ #for loop somesum = 0 for j in range(2,8): #j goes from 2 to 7 somesum += j print(somesum) #while loop umsum=0 k=50 while k<=100: #keeps going as long as k<=100 if k%5==0: #use == to test equality umsum +=k #if k is a multiple of 5 # it will add to the sum k+=1 # k will increase by 1 print(umsum)