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] a 4-digit display vr34 2 288 Apr-12-2024, 05:38 PM
Last Post: vr34
  [SOLVED] Pad strings to always get three-digit number? Winfried 2 336 Jan-27-2024, 05:23 PM
Last Post: Winfried
  [split] Explain the python code in this definition Led_Zeppelin 1 736 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,505 Oct-23-2022, 11:13 PM
Last Post: Pedroski55
  prefix ID Number with 0,00 make 3 digit. mg24 1 742 Oct-06-2022, 07:20 AM
Last Post: ibreeden
Star I was making code for collision for my character izmamonke 2 2,077 Aug-06-2021, 04:30 PM
Last Post: izmamonke
  [split] Kera Getting errors when following code example Image classification from scratch hobbyist 3 4,605 Apr-13-2021, 01:26 PM
Last Post: amirian
  Making a code.py file to function, does not run hobbyist 6 2,875 Jan-27-2021, 07:50 AM
Last Post: DeaD_EyE
  Making new lines of code AvioxyYT 1 1,795 Jan-22-2021, 07:02 PM
Last Post: buran
  if a string has a digit - print tester_V 2 2,133 Jan-16-2021, 04:48 AM
Last Post: tester_V

Forum Jump:

User Panel Messages

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