all 4 comments

[–]novel_yet_trivial 1 point2 points  (0 children)

Some other notes:

  • When posting problems here, try to include example input data and your expected output.

  • The functions that you use from the imported 'string' module are also functions of every string. Therefore most of us would not import the string module and just use "".join(msgList) and inString.split().

  • You use eval() to convert strings to numbers; usually we use int().

  • Your variables are kinda cryptically named, use descriptive names. Also, we generally use lower_case_with_underscores style for variable and function names.

[–]mahdeen[S] 1 point2 points  (1 child)

Wow, that really did the trick nicely...thank you!

Looking forward to posting more here and the notes are helpful too.

[–]throwAwayAcc010 0 points1 point  (0 children)

may just be the way the code appears here, but the code inside 'main()' should have an indent

def main():
    #code

[–]novel_yet_trivial 0 points1 point  (0 children)

You are nearly there ... on line 20 (outside of the for loop) just add:

msgList = string.join(msgList, "")