Insufficient fields to enter responses in the Console after running the code

Problem description

I’m on the second day of the 100 Days of Code course in Python. When I run the following code:

myLunch = input("What are you having for lunch? ")
print("Hmm, it sounds like you really should just order")
print("myLunch")
print("as soon as possible!")

Expected behavior

There should be enough space to at least enter the answers suggested in the tutorials.

Actual behavior

When entering information in the Console, in the question “What are you having lunch?”, there is only one space available to enter a single character. There is probably a limited amount of space to respond. This happens when I do the exercises and enter the information after running the code. How can I resolve or change this?

Steps to reproduce

I copy and paste the code:

myLunch = input("What are you having for lunch?")
print("Hmm, it sounds like you really should just order")
print("myLunch")
print("as soon as possible!")

in main.py. I run the code and enter the information in the Console.

Browser

Replit for Windows

OS

Windows 11

Device if mobile

N/A

Plan

Free

1 Like

Hello @ricardomontanh!

By only one space available, do you mean the console does not have enough height to display the entire program? Could you please screenshot the issue?

I’m not sure if this is what you’re talking about but you can use the newline escape sequence \nat the end of your myLunch input, so that when you go to type in the answer for it in the console, the cursor where you type will be on the next line, giving you more room.

myLunch = input("What are you having for lunch?\n ")
print("Hmm, it sounds like you really should just order")
print("myLunch")
print("as soon as possible!")