Skip to content
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

Please guide me #34

Open
revolutionarybukhari opened this issue May 27, 2020 · 1 comment
Open

Please guide me #34

revolutionarybukhari opened this issue May 27, 2020 · 1 comment

Comments

@revolutionarybukhari
Copy link

n=8
count = 0

for i in range(n):
for j in range(n):
for k in range(n):
if i < j and j < k:
count += 1

print(count)

output
SyntaxError: multiple statements found while compiling a single statement

@ConstantArguments
Copy link

You need to indent.

n=8
count = 0

for i in range(n):
for j in range(n):
for k in range(n):
if i < j and j < k:
count += 1

print(count)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants