Python Forum
My .exe made using Python being detected as a virus
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My .exe made using Python being detected as a virus
#2
you can simplify charGen:
def charGen(x):
    ret="banana"
    if x > 0 and x < len(ret)+1:
        return ret[x-1]

print(charGen(5))
print(charGen(2))
print(charGen(7))
print(charGen(0))
Output:
n a None None
Reply


Messages In This Thread
RE: My .exe made using Python being detected as a virus - by Larz60+ - Jun-15-2021, 04:51 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  python not detected on computer adriennn 3 5,149 Nov-18-2023, 02:46 PM
Last Post: snippsat
  python --version yields no output, not detected by other programs ten 3 5,199 Jun-25-2020, 04:48 AM
Last Post: perfringo
  Executable looks like virus to windows samuelbachorik 4 4,004 Apr-27-2020, 02:46 PM
Last Post: samuelbachorik
  How can I make this Python script add a limit to trades made with API? streetlaw 0 2,494 Oct-12-2018, 11:41 AM
Last Post: streetlaw
  Python files made on linux don't work on windows sylas 2 4,046 Oct-10-2018, 05:34 AM
Last Post: sylas
  Simple Python Virus microwavedelf 4 13,565 Sep-14-2018, 09:50 PM
Last Post: EhsojSide
  Go to line starting with and variable not detected morgandebray 5 4,624 Aug-09-2018, 09:00 AM
Last Post: morgandebray
  "Widget Javascript not detected" error BobLoblaw 0 4,975 Oct-07-2017, 04:48 PM
Last Post: BobLoblaw
  Object Detection that records the number of secs the face is not detected trabis03 1 3,255 Jul-21-2017, 04:14 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

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