Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use .sort()
#4
(Nov-01-2018, 08:32 AM)Mrocks22 Wrote: Could you explain how you would do that? I'm kinda confused

data = input("Students: ")
data2 = data.split()
data2.sort()
print('Class Roll')
print(data2)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
How to use .sort() - by Mrocks22 - Nov-01-2018, 07:21 AM
RE: How to use .sort() - by DeaD_EyE - Nov-01-2018, 07:49 AM
RE: How to use .sort() - by Mrocks22 - Nov-01-2018, 08:32 AM
RE: How to use .sort() - by buran - Nov-01-2018, 09:09 AM
RE: How to use .sort() - by Mrocks22 - Nov-01-2018, 09:42 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to sort a list without .sort() function letmecode 3 3,552 Dec-28-2020, 11:21 PM
Last Post: perfringo
  [split] Manual Sort without Sort function fulir16 2 3,268 Jun-02-2019, 06:13 AM
Last Post: perfringo
  Manual Sort without Sort function dtweaponx 26 49,601 Jun-01-2019, 06:02 PM
Last Post: SheeppOSU

Forum Jump:

User Panel Messages

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