Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
getting inputs efficiently
#3
Use
input1 = input()
spit_input = [x for x in input1.split(" ")]
The split allows the input to be sentence, or separated by spaces
pyzyx3qwerty
"The greatest glory in living lies not in never falling, but in rising every time we fall." - Nelson Mandela
Need help on the forum? Visit help @ python forum
For learning more and more about python, visit Python docs
Reply


Messages In This Thread
getting inputs efficiently - by arman888 - May-19-2020, 02:36 AM
RE: getting inputs efficiently - by menator01 - May-19-2020, 03:33 AM
RE: getting inputs efficiently - by pyzyx3qwerty - May-19-2020, 05:00 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to read in mulitple files efficiently garynewport 3 947 Jan-27-2023, 10:44 AM
Last Post: DeaD_EyE
  How to efficiently average same entries of lists in a list xquad 5 2,201 Dec-17-2021, 04:44 PM
Last Post: xquad
  Finding a Hamiltonian Path Efficiently - ADVANCED stauffski 3 6,032 Dec-31-2019, 10:25 PM
Last Post: stauffski

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020