Skip to content
This repository was archived by the owner on Apr 1, 2021. It is now read-only.

Comments

Article: Python Input() Function#1031

Merged
alayek merged 5 commits intofreeCodeCamp:masterfrom
meetmangukiya:working
May 26, 2016
Merged

Article: Python Input() Function#1031
alayek merged 5 commits intofreeCodeCamp:masterfrom
meetmangukiya:working

Conversation

@meetmangukiya
Copy link
Contributor

Adds to #509

Python-Input.md Outdated
@@ -0,0 +1,33 @@
# Python Input() Function

Many a times, in a program we need some input from the user. Taking inputs from the user makes the program feel a bit interactive. In python, to take input from the user we have a function `input()`. Let's see some examples:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In python In Python 3

@alayek alayek self-assigned this May 25, 2016
@alayek
Copy link
Member

alayek commented May 25, 2016

LGTM 👍

Once you have fixed the issues, let's :shipit: 📦

@koustuvsinha @atjonathan might want to take a look.

@koustuvsinha
Copy link
Member

LGTM too, just implement the suggestions! 👍

@ghost
Copy link

ghost commented May 25, 2016

Checking grammar...

Python-Input.md Outdated
@@ -0,0 +1,41 @@
# Python Input() Function

Many a times, in a program we need some input from the user. Taking inputs from the user makes the program feel a bit interactive. In Python 3, to take input from the user we have a function `input()`. Let's see some examples:
Copy link

@ghost ghost May 25, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many a times, in Many a time, in

Taking inputs from the user makes the program feel a bit interactive. Taking inputs from the user makes the program feel interactive.

@ghost
Copy link

ghost commented May 25, 2016

Other than that, LGTM 👍

number = int(input('Please enter a number: '))
```
[Run Code](https://repl.it/CUqX/2) :rocket:
If you enter a non integer value then Python will throw an error `ValueError`. **So whenever you use this, please make sure that you catch it too.** Otherwise, your program will stop unexpectedly after the prompt.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

give a blank line here, Run code and the next line are in the same line

@meetmangukiya
Copy link
Contributor Author

@koustuvsinha Done. Thanks for pointing it out 👍

@ghost ghost changed the title Create Article: Python Input() Function Article: Python Input() Function May 26, 2016
@alayek alayek merged commit 7a580e6 into freeCodeCamp:master May 26, 2016
@BerkeleyTrue BerkeleyTrue removed the QA label May 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants