@ParitoshSingh well it should be 1 because the idea is that the cow and bull count helps the player to achieve the correct answer finally. therefore my code should focus on the user input, not the ...........ooooooooohhhhhhhhh
@ChuckIvan yes. I guess thats what i tried to find an alternative for but couldnt find any. as to the the non-repetition of numbers: i am using examples from pythonpractice.org, where they didnt specify that. i didnt know how familiar people here are with that site, so i just googled for a quick explanation from a maybe more known website. (i do not know yet how protective you guys are when it comes to sharing links on here :')
alrighty then: im trying to build a cows and bulls game(for everyone not familiar: en.wikipedia.org/wiki/Bulls_and_Cows#The_numerical_version). It works fine besides on problem: i use a for loop to check whether the a digit from userguess is in the random number. then i check if i should attribute cow or bullpoints. if it should be bullpoints, this happens(this is where im unclear as to how to ask)
I have a question about a piece of code I'm writing to practice python, and i got stuck. i was about to post a question on the forums but realized that i dont really know what exactly i am looking for or how to formulate it in a forum appropriate way. mind if i ask it here to get some clarity? :D
hey, i have a really weird problem, im still at the beginner level in python and when i couldnt sleep i found an exercize page. i am writing a script to check if a given input number is equal or not: dpaste.com/3J0WAES