Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Finding line numbers starting with certain string
Post: RE: Finding line numbers starting with certain str...

(Jun-27-2020, 12:19 PM)Yoriz Wrote: you function does not return anything İt is supposed to record satırsayısı to the list. What i am missing ?
Sutsro General Coding Help 3 667 Jun-27-2020, 12:22 PM
    Thread: if conditions in the for indentation doesnt work ?
Post: RE: if conditions in the for indentation doesnt wo...

(May-04-2020, 10:11 AM)perfringo Wrote: Probably I miss something but what these lines are supposed to do: print(isimsatırlistesi[0,"end"]) if len.isimsatırlistesi<0: print(isimsatırlistesi[0,"...
Sutsro General Coding Help 4 763 Jun-27-2020, 12:15 PM
    Thread: Finding line numbers starting with certain string
Post: Finding line numbers starting with certain string

Hi people, I am trying to get line numbers depending if the line starts with "T.C." however list is empty and printing the number list gives me nothing. input receives the text there are no problems...
Sutsro General Coding Help 3 667 Jun-27-2020, 12:11 PM
    Thread: finding lines from a text entry
Post: RE: finding lines from a text entry

Looks like i found the problem when importing from a text file, you have to .rsplit like this: inputraw = text1.get("1.0",'end-1c') input=inputraw.rsplit(" ")after doing that if and search functions ...
Sutsro GUI 2 711 May-04-2020, 09:19 AM
    Thread: if conditions in the for indentation doesnt work ?
Post: RE: if conditions in the for indentation doesnt wo...

Thanks for the answer, interestingly this code cant seem to find test, i tried if line.startswith method to no success.
Sutsro General Coding Help 4 763 May-04-2020, 08:48 AM
    Thread: if conditions in the for indentation doesnt work ?
Post: if conditions in the for indentation doesnt work ?

Hello Everyone, I am trying to get the lines that contain test string or if its not found i want to print not found message. However this doesnt seem to work i dont get any messages at all. I can r...
Sutsro General Coding Help 4 763 May-03-2020, 10:08 PM
    Thread: finding lines from a text entry
Post: finding lines from a text entry

Hey everyone i made a code to find lines that starts with adres however it doesnt work, any ideas would be appreciated. def verial(): #aşama 1 adres satırını alıyoruz. adressatırlistesi=[] ...
Sutsro GUI 2 711 May-03-2020, 05:51 PM
    Thread: item from a line to list however when i print the line instead of words i get letters
Post: RE: item from a line to list however when i print ...

Looks like i found the solution, using "strip" instead of "split". line2=line2.rstrip() this should be, line2=line2.rsplit(). I can still take input about creating word document inside python tou...
Sutsro General Coding Help 5 717 Apr-22-2020, 02:13 PM
    Thread: item from a line to list however when i print the line instead of words i get letters
Post: RE: item from a line to list however when i print ...

(Apr-22-2020, 01:24 PM)deanhystad Wrote: Check the spelling of your python (/phyton) tags. The editor has buttons for making tags.Thanks didnt know about the buttons :)
Sutsro General Coding Help 5 717 Apr-22-2020, 01:29 PM
    Thread: item from a line to list however when i print the line instead of words i get letters
Post: item from a line to list however when i print the ...

Hey Everyone, After some brainstorming and help from anbu23 i was able to make it work. However instead of words i get letters seperated like this . I tought of using rstrip on line however that didi...
Sutsro General Coding Help 5 717 Apr-22-2020, 01:21 PM
    Thread: Cant Append a word in a line to a list err "str obj has no attribute append
Post: Cant Append a word in a line to a list err "str o...

Hey everyone, I am trying to get every word in line to a list however i am getting error " AttributeError: 'str' object has no attribute 'append'". Any ideas are welcome, thanks in advance. if satır...
Sutsro General Coding Help 2 612 Apr-22-2020, 11:11 AM
    Thread: Lists first item is a number however i cant compare it with an int getting syntax err
Post: RE: Lists first item is a number however i cant co...

Thanks alot looks like i forgot to use ":" at the end of if. It works thanks a bunch :). if satırsayısı2==isimsatırlistesi[0]: (Apr-22-2020, 09:58 AM)anbu23 Wrote: I am able to run your code with...
Sutsro General Coding Help 4 564 Apr-22-2020, 10:22 AM
    Thread: Lists first item is a number however i cant compare it with an int getting syntax err
Post: RE: Lists first item is a number however i cant co...

Still getting the error thanks for the comment tough.
Sutsro General Coding Help 4 564 Apr-22-2020, 09:10 AM
    Thread: Lists first item is a number however i cant compare it with an int getting syntax err
Post: Lists first item is a number however i cant compar...

Hello everyone, when i try to compare list first element i am getting a syntax error. "if satırsayısı2=isimsatırlistesi[0]" this list is made of " isimsatırlistesi.append(int(satırsayısı))" so all ...
Sutsro General Coding Help 4 564 Apr-22-2020, 08:45 AM

User Panel Messages

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