0

I'm testing the random module by creating a CCGen (not to use illegally, just cause it was the first idea I got). I don't know how I cant print 2 numbers attached (like printing 589903 and 3956371942 all together --> 5899033956371942).

This is the script:

import random

a = print ("")

x = random.randint (1000000000, 9999999999)

ccv = random.randint (100, 999)

month = random.randint (1, 12)

year = random.randint (2018, 2023)

print (a)

bin1 = input ("Please insert your BIN: ")
number = input ("Amount of CCs to generate: ")

for ccs in range(number):
    print bin1

My problem is in the end, thanks.

YoungCasT
  • 1
  • 1
  • 1
    Your question is about python 3.7 (title) but you nevertheless have `print bin1` in your code like in python 2.X? – quant Nov 18 '18 at 14:08
  • Sorry, just got on 3 from 2.7, yeah it's 3.7 – YoungCasT Nov 18 '18 at 14:11
  • Possible duplicate of https://stackoverflow.com/questions/493386/how-to-print-without-newline-or-space – quant Nov 18 '18 at 14:13
  • 1
    Possible duplicate of [How to print without newline or space?](https://stackoverflow.com/questions/493386/how-to-print-without-newline-or-space) – Chris Nov 18 '18 at 14:13
  • Side note, what are you trying to accomplish by binding the result of a call to print `print()` to a variable (`a`) and then `print`ing that value later (`print(a)`)? – Chris Nov 18 '18 at 14:14
  • I use it to leave spaces, so the script looks better when running – YoungCasT Nov 18 '18 at 14:23

0 Answers0