Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
question on using for
#3
in python _ is valid variable name. As per convention _ variable name is used when the variable value doesn't matter. In your example you just need to loop 10000 times (i.e. 10000 trials), you don't care for the variable value and don't use it in the code elsewhere
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



Messages In This Thread
question on using for - by tryingtolearnpython - Jun-17-2018, 11:28 AM
RE: question on using for - by Nwb - Jun-17-2018, 11:49 AM
RE: question on using for - by buran - Jun-17-2018, 11:57 AM
RE: question on using for - by Nwb - Jun-17-2018, 03:42 PM
RE: question on using for - by volcano63 - Jun-17-2018, 03:54 PM
RE: question on using for - by ichabod801 - Jun-17-2018, 06:35 PM
RE: question on using for - by volcano63 - Jun-17-2018, 07:55 PM
RE: question on using for - by ichabod801 - Jun-17-2018, 08:47 PM
RE: question on using for - by tryingtolearnpython - Jun-18-2018, 07:17 AM
RE: question on using for - by Nwb - Jun-18-2018, 10:12 AM
RE: question on using for - by volcano63 - Jun-18-2018, 01:35 PM
RE: question on using for - by DeaD_EyE - Jun-18-2018, 10:51 AM
RE: question on using for - by volcano63 - Jun-18-2018, 06:46 PM
RE: question on using for - by buran - Jun-18-2018, 03:52 PM
RE: question on using for - by Nwb - Jun-22-2018, 02:46 AM
RE: question on using for - by buran - Jun-22-2018, 05:00 AM

Forum Jump:

User Panel Messages

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