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
  [split] How to continue code after .show() in matplotlib? pythonnewbie62 1 840 Apr-28-2025, 04:02 PM
Last Post: deanhystad
  [split] another problem with code blakeusherremix68 0 888 Dec-23-2024, 11:36 PM
Last Post: blakeusherremix68
  [split] Code help emma1423 1 1,155 Dec-13-2024, 02:00 PM
Last Post: perfringo
  [solved] a 4-digit display vr34 2 2,056 Apr-12-2024, 05:38 PM
Last Post: vr34
  [SOLVED] Pad strings to always get three-digit number? Winfried 2 1,947 Jan-27-2024, 05:23 PM
Last Post: Winfried
  [split] Explain the python code in this definition Led_Zeppelin 1 1,776 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 3,951 Oct-23-2022, 11:13 PM
Last Post: Pedroski55
  prefix ID Number with 0,00 make 3 digit. mg24 1 1,772 Oct-06-2022, 07:20 AM
Last Post: ibreeden
Star I was making code for collision for my character izmamonke 2 3,329 Aug-06-2021, 04:30 PM
Last Post: izmamonke
  [split] Kera Getting errors when following code example Image classification from scratch hobbyist 3 6,414 Apr-13-2021, 01:26 PM
Last Post: amirian

Forum Jump:

User Panel Messages

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