Python Forum
[split] I need help making a four digit code cracker with random
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] I need help making a four digit code cracker with random
#1
hi i need help making a four digit code cracker with random here is my code if you have any idea to help me:
from random import *

code_user = "2344"
print (code)
if code == code_user:
   print ("this is the code! + code_user")
can you help me? Wall
Reply
#2
Can you elaborate more? This sounds like homework, and knowing the real prompt might really help us to help you without spoiling the problem.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [SOLVED] Pad strings to always get three-digit number? Winfried 2 280 Jan-27-2024, 05:23 PM
Last Post: Winfried
  [split] Explain the python code in this definition Led_Zeppelin 1 709 Jan-13-2023, 10:20 PM
Last Post: deanhystad
  [split] why can't i create a list of numbers (ints) with random.randrange() astral_travel 7 1,428 Oct-23-2022, 11:13 PM
Last Post: Pedroski55
  prefix ID Number with 0,00 make 3 digit. mg24 1 708 Oct-06-2022, 07:20 AM
Last Post: ibreeden
Star I was making code for collision for my character izmamonke 2 2,054 Aug-06-2021, 04:30 PM
Last Post: izmamonke
  [split] Kera Getting errors when following code example Image classification from scratch hobbyist 3 4,546 Apr-13-2021, 01:26 PM
Last Post: amirian
  Making a code.py file to function, does not run hobbyist 6 2,844 Jan-27-2021, 07:50 AM
Last Post: DeaD_EyE
  Making new lines of code AvioxyYT 1 1,756 Jan-22-2021, 07:02 PM
Last Post: buran
  if a string has a digit - print tester_V 2 2,079 Jan-16-2021, 04:48 AM
Last Post: tester_V
  [split] Python code help sairam17519 3 2,570 Sep-10-2020, 01:44 PM
Last Post: sairam17519

Forum Jump:

User Panel Messages

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