We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • Hackerrank Home
  • Prepare
    NEW
  • Certify
  • Compete
  • Career Fair
  • Hiring developers?
  1. Prepare
  2. Python
  3. Introduction
  4. Loops
  5. Discussions

Loops

Problem
Submissions
Leaderboard
Discussions
Editorial
Tutorial

Sort 1241 Discussions, By:

recency

Please Login in order to post a comment

  • darshanajayathi1
    4 hours ago+ 0 comments

    intno=10

    def findsqure(intinputno): print(intinputno) for i in range(intinputno,0,-1): print(i*i)

    findsqure(intno)

    0|
    Permalink
  • reetombh
    1 week ago+ 1 comment

    This worked for me

    if __name__ == '__main__': n = int(input()) i=0 while i<n: print(i**2) i += 1

    -4|
    Permalink
  • karthikmudgal34
    1 week ago+ 0 comments

    if name == 'main': n = int(input())

    for i in range(n):
        print(i*i)
    
    0|
    Permalink
  • Skb_gagandeep
    1 week ago+ 0 comments
    **i think  hacker ranke  example want to see the code as it ... **
    i will try to this code see ....
    
        n=int(input("enter  the no:"))
        for i in range(0,n):
         print(i*i)
    
         than i was to try the code all ways give me wronge answer 
    
         so 
    
    0|
    Permalink
  • zozz6092
    1 week ago+ 0 comments

    To be recognized as Cable Tray Manufacturers in Pakistan top-ranked electrical manufacturing, trading, and service-providing company through our commitment to core values. We shall introduce ourselves in the international market as a reliable electrical equipment brand through our safe, reliable, affordable, quality products and satisfactory services.

    0|
    Permalink
Load more conversations

Need Help?


View tutorial
View editorial
View top submissions
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy