Answers for "how to enter text with multiple lines input in python"

6

how to take two inputs in a single line in python

x, y = input("Enter a two value: ").split()
print("Number of boys: ", x)
print("Number of girls: ", y)
print()
Posted by: Guest on August-31-2021
2

two input in one line python

#two input in one line python

X, N = [int(x) for x in input().split()]
Posted by: Guest on November-08-2021
0

multiple lines input python

print("Enter/Paste your content. Ctrl-D or Ctrl-Z ( windows ) to save it.")
contents = []
while True:
    try:
        line = input()
    except EOFError:
        break
    contents.append(line)
Posted by: Guest on December-04-2021

Code answers related to "how to enter text with multiple lines input in python"

Python Answers by Framework

Browse Popular Code Answers by Language