Sep-09-2019, 09:29 PM
(Sep-09-2019, 08:54 PM)SheeppOSU Wrote: For separating the the the random number, you can simply turn it into a string and get the two numbers. Here's an example put into a function.
def Num_Sep(number): strNum = str(number) #Turn the number into a string because strings are made of arrays allowing for the number to be taken apart. numberArray = [] #The list to send back the numbers in. for character in strNum: numberArray.append(int(character)) #Add the number to the list as an int value. return numberArray #Return the numbers of the number in a list.Hope this helps!
Thanks SheepOSU for the help, I am going to try and implement it, I am still very new to coding, like I started past Thursday with a software engineering bootcamp from scratch ive never touched coding before so its all very new and foreign to me and takes me a while to digest it but I am sure I will figure it out with your advice I appreciate it big time SheepOSU! :)