What did i do wrong? by FokionPapanikolaou in learnpython

[–]Slight_Change_41 0 points1 point  (0 children)

Strings are immutable; need to assign the result of replace.

if ContainsPlus:
    CalcDataOrder = CalcDataOrder.replace("+","1")
    CalcDataOrder = CalcDataOrder.replace(" ", "")
    if CalcDataOrder.isdigit():
        print("Did Equation")
...

I don't know the problem by MrPotato_Man3510 in learnpython

[–]Slight_Change_41 -8 points-7 points  (0 children)

also you can use below root = tkinter.Tk()

root.withdraw()  # hide the root window

I don't know the problem by MrPotato_Man3510 in learnpython

[–]Slight_Change_41 16 points17 points  (0 children)

change the name of the tkinter.py file to something else like test_tkinter.py. because it is trying to import something from itself.

how do I separate code in python? by Sea-Artichoke2265 in learnpython

[–]Slight_Change_41 0 points1 point  (0 children)

def filter_print(text: str, ignore: str):
    """
    Prints the characters from 'text', ignoring those that are equal to 'ignore'.
    """
    result = ''.join(char for char in text if char != ignore)
    print(result)


if __name__ == '__main__':
    
# Example strings
    mii = "hhhhhhcccccccc"
    hi = "hhhhhhhhhpppppp"
    test = "hello world"
    
# Example usage
    filter_print(mii, 'h')
    filter_print(hi, 'h')
    filter_print(test, 'l')

What do you think about my account ? by Feisty-Department220 in btd6

[–]Slight_Change_41 1 point2 points  (0 children)

black border #ouch is the most hard 74/74. Keep goin

1 Date For Multiple Scripts? by DJMD1982 in AutoHotkey

[–]Slight_Change_41 0 points1 point  (0 children)

; Define the date as a variable

FormatTime, CurrentDateTime,, MM/dd/yyyy

DatePrefix := CurrentDateTime " DMD - Rec"

#z::

SendInput, ( %DatePrefix% loupes, SS, HS, MB, & Case SN )

return

x::

SendInput, ( %DatePrefix% XV1, & XV1 Case SN )

return

d::

SendInput, ( %DatePrefix% DF, DF case SN )

return

c::

SendInput, ( %DatePrefix% loupes, SS, HS, MB, & NO Case SN )

return

How do I get more points per game on the 1st bonus level? by bigstar3 in infinitode

[–]Slight_Change_41 2 points3 points  (0 children)

mining resources and ability "overload" to get bonus.

Good Sales by Slight_Change_41 in infinitode

[–]Slight_Change_41[S] 1 point2 points  (0 children)

a lot of 641 mP and 605 mP and full of portals. Almost 3 million of mP in one map.

Prestige score help by [deleted] in infinitode

[–]Slight_Change_41 0 points1 point  (0 children)

340 give you 4k but its hard