Python Forum
Ways to check if the variable works.
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ways to check if the variable works.
#3
(May-02-2017, 08:20 PM)buran Wrote: given that you generate random number between 1 and 100, the chance that you enter the same number (even if you call it 'name') is 1 in 100 (probability/statistics).
... add to that that ranNum is int, and myName is str
Test everything in a Python shell (iPython, Azure Notebook, etc.)
  • Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
  • Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
  • You posted a claim that something you did not test works? Be prepared to eat your hat.
Reply


Messages In This Thread
Ways to check if the variable works. - by AlwaysNew - May-02-2017, 07:48 PM
RE: Ways to check if the variable works. - by buran - May-02-2017, 08:20 PM
RE: Ways to check if the variable works. - by volcano63 - May-02-2017, 08:29 PM
RE: Ways to check if the variable works. - by wavic - May-04-2017, 05:51 AM

Forum Jump:

User Panel Messages

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