Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Help with removing spaces and tabs from a string
Post: RE: Help with removing spaces and tabs from a stri...

yea, because nothing is getting outputted.
msqpython Homework 14 4,046 Jan-21-2021, 10:42 PM
    Thread: Help with removing spaces and tabs from a string
Post: RE: Help with removing spaces and tabs from a stri...

Sorry about that. I accidentally posted the code twice, there was a version above the last post that had the correct format but I'll paste it here again with the correct format. My program is supposed...
msqpython Homework 14 4,046 Jan-21-2021, 10:13 PM
    Thread: Help with removing spaces and tabs from a string
Post: RE: Help with removing spaces and tabs from a stri...

i reformatted the code above i input = " Testing a b c tab output=Testingabc
msqpython Homework 14 4,046 Jan-21-2021, 10:01 PM
    Thread: Help with removing spaces and tabs from a string
Post: RE: Help with removing spaces and tabs from a stri...

Please help below code.. output is Mone: string = input("Enter a string: \n") def trim(string): newstring = "" pos = 0 length = len(string) while (pos < length ): i...
msqpython Homework 14 4,046 Jan-21-2021, 09:53 PM
    Thread: Help with removing spaces and tabs from a string
Post: RE: Help with removing spaces and tabs from a stri...

Hello, this is actually a follow-up question on my code. So I actually forgot to put my code inside of a function at the start, so I added it in and its saying that its not giving the same output I ha...
msqpython Homework 14 4,046 Jan-21-2021, 09:10 PM
    Thread: Help with removing spaces and tabs from a string
Post: RE: Help with removing spaces and tabs from a stri...

This helped, thanks so much.
msqpython Homework 14 4,046 Jan-20-2021, 10:32 PM
    Thread: Help with removing spaces and tabs from a string
Post: RE: Help with removing spaces and tabs from a stri...

Thank you for the reply, here is the code that I have. I'm trying to make it so that it checks if there are spaces in a loop and if there are, it removes the space. newstring ="" string = input("En...
msqpython Homework 14 4,046 Jan-20-2021, 10:04 PM
    Thread: Help with removing spaces and tabs from a string
Post: Help with removing spaces and tabs from a string

Could anyone please help me for this question. I am trying to write a program that removes all spaces and tabs from a string that the user gives but I don't want to use any built in functions like re...
msqpython Homework 14 4,046 Jan-20-2021, 09:56 PM

User Panel Messages

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