-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loops.py #424
Comments
Thanks for helping us improve and opening your first issue here! Someone will address it right away! |
Your output and expected output are same. |
Hey!
So sorry I was trying to use my Hackerrank solution as a pull request. I'm
still new to Github so I'm trying to figure it all out!
…On Fri, Oct 11, 2019 at 1:04 AM Laisha Wadhwa ***@***.***> wrote:
Your output and expected output are same.
However you can simply use this small piece of code
if *name* == '*main*':
N = int(raw_input())
for i in range(N):
print(i**2)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#424?email_source=notifications&email_token=AK53SWH52I2YJUJAU4ZUJ3LQOAJOJA5CNFSM4I7GUYU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA65HWI#issuecomment-540922841>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK53SWBV4ZCO5YLRY75VTG3QOAJOJANCNFSM4I7GUYUQ>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.hackerrank.com/challenges/python-loops/problem?isFullScreen=true&h_r=next-challenge&h_v=zen
Expected behavior and actual behavior
Expected behavior:
0
1
4
9
16
Actual behavior:
0
1
4
9
16
Steps to reproduce the problem
N = int(raw_input())
i = 0
while (N >= 1 and N <= 20) and i < N:
print i**2
i += 1
The text was updated successfully, but these errors were encountered: