Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
class homework
#3
Proposals don't handle if there are any spaces. @Askic response assumes you have covered slices of strings (that colon format), where I am thinking they are trying to teach you loops. Have you covered slices?
Suggest:
get your inputs like you are doing, but would not bother converting to an int
Get the first 5 characters of the last name, using slice notation if that is allowed
Remove a space if present (hint - look at the replace function and replace with '')
concatenate the result with the school_id.
print
Reply


Messages In This Thread
class homework - by mohan10216 - Oct-28-2020, 12:40 AM
RE: class homework - by Askic - Oct-28-2020, 05:09 PM
RE: class homework - by jefsummers - Oct-28-2020, 06:28 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Class Homework Cowboy 1 2,548 Nov-16-2017, 01:56 AM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

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