Skip to content

One little obstacle #8

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

Closed
hupoci0000 opened this issue Oct 22, 2018 · 4 comments
Closed

One little obstacle #8

hupoci0000 opened this issue Oct 22, 2018 · 4 comments

Comments

@hupoci0000
Copy link

hupoci0000 commented Oct 22, 2018

Hello Akuli

I am doing the exercise for if else/elif

print('Hello!')
something = input("Enter something: ")
if something = 'hello':
print("Hello for you too!")

elif something = 'hi'
print('Hi there!')
else:
print("I don't know what," something, "means.")

I ve fixed the errors in the block, but having trouble to fix the last else-print-clause, when i run it, no results, and no error message, it stuck. Please help.

btw, wonderful tutorial.

Thanks much

Tony

@Akuli
Copy link
Owner

Akuli commented Oct 23, 2018

The code you have here seems to be the broken code from my tutorial. Can you show your mostly-fixed version of the code?

By the way, if you put the code between backticks, like this...

```
some code
```

...it'll show up correctly and I can actually see how you have indented it.

@Aliraza-N
Copy link

If your code is exactly how you copy/pasted it out to be, then it's incorrect. Notice in the last print statement, your first comma goes before the end quote, where instead it should be after.

print("I don't know what," something, "means.")
should be:
print("I don't know what", something, "means.")

@hupoci0000
Copy link
Author

Thanks guys, i think i've resolved it. haha.

@Akuli
Copy link
Owner

Akuli commented Oct 30, 2018

Nice

@Akuli Akuli closed this as completed Oct 30, 2018
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

3 participants