Perfect Square Get link Facebook X Pinterest Email Other Apps Perfect SquareQUESTION DESCRIPTIONWrite a program to display the perfect square using listInput:1. The lower range number2. The upper range numberOutput:The perfect square number using List a=int(input())b=int(input())l=[]if a==1: l.append(a)for i in range(0,b): v=i*i if v > a and v <= b: l.append(v)print(l) Comments
Comments
Post a Comment