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
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
Can you elaborate more? This sounds like homework, and knowing the real prompt might really help us to help you without spoiling the problem.
Feel like you're not getting the answers you want? Checkout the help/rules for things like what to include/not include in a post, how to use code tags, how to ask smart questions, and more.

Pro-tip - there's an inverse correlation between the number of lines of code posted and my enthusiasm for helping with a question :)

Possibly Related Threads…
Thread Author Replies Views Last Post
Star I was making code for collision for my character izmamonke 2 240 Aug-06-2021, 04:30 PM
Last Post: izmamonke
  [split] Kera Getting errors when following code example Image classification from scratch hobbyist 3 2,014 Apr-13-2021, 01:26 PM
Last Post: amirian
  Making a file to function, does not run hobbyist 6 904 Jan-27-2021, 07:50 AM
Last Post: DeaD_EyE
  Making new lines of code AvioxyYT 1 513 Jan-22-2021, 07:02 PM
Last Post: buran
  if a string has a digit - print tester_V 2 598 Jan-16-2021, 04:48 AM
Last Post: tester_V
  [split] Python code help sairam17519 3 873 Sep-10-2020, 01:44 PM
Last Post: sairam17519
  How to Split Output Audio on Text to Speech Code Base12 2 3,568 Aug-29-2020, 03:23 AM
Last Post: Base12
  Is this right code for 3 digit pin ? fatjuicypython 1 614 Aug-21-2020, 11:15 PM
Last Post: bowlofred
  How to split and combine embedded lines using less code pjfarley3 6 832 Aug-13-2020, 09:13 PM
Last Post: pjfarley3
  [split] SyntaxError when trying to execute code on Windows nehaya 2 689 Aug-04-2020, 11:18 AM
Last Post: nehaya

Forum Jump:

User Panel Messages

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