Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Why is my string empty?
Post: RE: Why is my string empty?

(Jan-30-2021, 03:52 AM)bowlofred Wrote: (Jan-30-2021, 02:29 AM)karabakh Wrote: When I add the ids to some list, the list is not being overwritten. That's because you're using a method of the list ...
karabakh General Coding Help 5 2,391 Jan-30-2021, 04:51 AM
    Thread: Why is my string empty?
Post: RE: Why is my string empty?

(Jan-30-2021, 02:24 AM)bowlofred Wrote: In the first place, why are you building a dictionary that maps from position to letter, but then using it to look from letter to position? My first thought...
karabakh General Coding Help 5 2,391 Jan-30-2021, 02:29 AM
    Thread: Why is my string empty?
Post: Why is my string empty?

Hi, I want to create a loop that would attach the ids from a certain dictionary to a string, space between ids. import string letters = list(string.ascii_lowercase) dic = {} lista = [] strin=() ...
karabakh General Coding Help 5 2,391 Jan-30-2021, 02:12 AM
    Thread: Why does lambda throw 'name value_o is not defined' error?
Post: RE: Why does lambda throw 'name value_o is not def...

(Dec-14-2020, 04:58 PM)deanhystad Wrote: if n == 0 this code never runs: for index,value in enumerate(text): global value_e value_e=[value for index, valu...
karabakh General Coding Help 3 2,180 Dec-14-2020, 05:45 PM
    Thread: Why does lambda throw 'name value_o is not defined' error?
Post: Why does lambda throw 'name value_o is not defined...

Note that this is happening in codewars and my IDE is not showing any errors. def decrypt(text,n): i=0 test="" if n<0: text=text else: while i<n: fo...
karabakh General Coding Help 3 2,180 Dec-14-2020, 03:21 PM
    Thread: What does turtle.Turtle() actually do?
Post: RE: What does turtle.Turtle() actually do?

(Dec-11-2020, 03:52 PM)ndc85430 Wrote: The naming conventions in PEP 8 should help you here. You know that the dot syntax means to access the thing after the dot in the module before the dot. The th...
karabakh General Coding Help 7 4,425 Dec-11-2020, 03:55 PM
    Thread: What does turtle.Turtle() actually do?
Post: RE: What does turtle.Turtle() actually do?

(Dec-11-2020, 03:41 PM)michael1789 Wrote: Never used Turtle, but I think turtle.Turtle() is "turtle" is the module, "Turtle" is the Turtle class in the module... aka your player or some other moveab...
karabakh General Coding Help 7 4,425 Dec-11-2020, 03:53 PM
    Thread: What does turtle.Turtle() actually do?
Post: What does turtle.Turtle() actually do?

What does turtle.Turtle() actually do? I am trying to follow this tutorial on youtube: https://www.youtube.com/watch?v=crV6T3piwHQ You can see that the author first generates the screen with turtle....
karabakh General Coding Help 7 4,425 Dec-11-2020, 03:31 PM

User Panel Messages

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