# Python User Input

**URL:** https://forum.networklessons.com/t/python-user-input/10829
**Category:** Lessons Discussion
**Created:** [April 20, 2020, 3:14pm UTC](https://forum.networklessons.com/t/python-user-input/10829 "2020-04-20T15:14:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [April 20, 2020, 3:14pm UTC](https://forum.networklessons.com/t/python-user-input/10829/1 "2020-04-20T15:14:08Z")

</div>

This topic is to discuss the following lesson:

> **[Python User Input](https://networklessons.com/python/python-user-input)**
>
> The Python input() function pauses your code and asks the user to enter some data which we store in a variable as a string.

---

<div class="post-metadata">

### Author: ![Rahul\_K](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/r/b9e5f3/32.png) [@Rahul\_K](https://forum.networklessons.com/u/Rahul_K)
#### Post date: [September 25, 2022, 5:17am UTC](https://forum.networklessons.com/t/python-user-input/10829/2 "2022-09-25T05:17:30Z")

</div>

Hello,

As far as I understand, the code shown in this example seems to be incorrect. There is no need for Print function here for the output we get when we execute the code. Please check. Thanks!

---

<div class="post-metadata">

### Author: ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)
#### Post date: [September 26, 2022, 7:11am UTC](https://forum.networklessons.com/t/python-user-input/10829/3 "2022-09-26T07:11:44Z")

</div>

Hello Rahul

Hmm, I’m not sure what you mean. If the print function was not there, no output would appear after you put in the hostname. Results with the print function:

 ![image](https://cdn-forum.networklessons.com/uploads/default/original/2X/0/045683ed9b9e023a836a643de9db2b6a7051b14b.png)

Results without the print function:

 ![image](https://cdn-forum.networklessons.com/uploads/default/original/2X/b/b26cdeca77686c0f18f354eedbed794446c3dcc4.png)

Can you clarify the error that you are referring to?

Thanks!

Laz
