Python Forum
Help needed for Understanding this code
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help needed for Understanding this code
#5
(Apr-03-2018, 06:49 PM)buran Wrote: a is 81-char string, i.e. 81 digits as string. a[:i]+m+a[i+1:] will replace the char (digit on index i) with m
that is not 100% precise
r(a[:i]+m+a[i+1:]) is calling function r with a string that is derived from a, but the char (digit) on index i is replaced with m
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
RE: Help needed for Understanding this code - by buran - Apr-03-2018, 06:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Code understanding: Need help in understanding dictionary code jt123 0 507 Jul-09-2023, 01:13 PM
Last Post: jt123
  New to python/coding Need help on Understanding why this code isn't working. Thanks! mat3372 8 1,913 May-09-2023, 08:47 AM
Last Post: buran
  Code Assistance needed in saving the file MithunT 0 859 Oct-09-2022, 03:50 PM
Last Post: MithunT
  Understanding a piece of code Michael1 4 1,518 Jan-20-2022, 07:14 PM
Last Post: Michael1
  Beginner: I need help understanding few lines of a code. hop_090 1 1,743 Sep-07-2020, 04:02 PM
Last Post: Larz60+
  Extracting Rows From Data Frame and Understanding The Code JoeDainton123 0 1,480 Aug-03-2020, 04:08 PM
Last Post: JoeDainton123
  Explanantion needed in part of code... jayg320 6 3,662 Apr-26-2020, 11:33 AM
Last Post: anbu23
  Help Understanding Code Variables 1 1,960 May-02-2019, 05:53 PM
Last Post: micseydel
  Need help understanding simple Array code. Please. stluwa 1 2,281 Apr-13-2019, 07:16 PM
Last Post: loomski
  Trouble Understanding Why This Code Works crocolicious 2 2,774 Apr-09-2019, 05:24 PM
Last Post: crocolicious

Forum Jump:

User Panel Messages

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