Emilykel's Posts
Nairaland Forum › Emilykel's Profile › Emilykel's Posts
nettwrock:08140123075 |
the apps not the most beautiful but it works... it uses the luhn algorithm behind the scenes... it's my first kivy thing......keep pressing generate and get new imeis generated....no stress....
|
I used the luhn algorithm to calculate imei luhn digits and then used a simple for loop to generate multiple imeis by passing the imeis through the imei calculator before generating.....so the imeis are valid... according to the luhn algorithm.....
|
randint() and random.choice(range()) are the same, besides Av used randint before... I also see no reason to use while guess!=0 |
I know, but I don't wanna reduce the range, am thinking about making 4 picks from behind the scenes so that each guess is checked against the picks for at least a win |
hello guys and my fellow python gurus.. I wrote this simple guess game in python using a while loop and random module... the game asks you to guess what it's thinking of then you enter the number,however when you make a wrong guess, it picks another random number.. the issue is, since I wrote it, Av won only about 3 times out of about 300 guesses..I want you guys to bring ideas on how to make the game more winnable because the chances of making a guess are only 20... #-*-coding:utf8;-*- #qpy:3 #qpy:console import random print ("" ![]() print("this is a guessing game,you have [ 20 ] attempts" ![]() print("this is v.3 in attempt to make the game easy.. " ![]() print("" ![]() print(" LETS PLAY THE GAME" ![]() print ("" ![]() number=random.choice(range(1,150)) Max = 150 minn =1 failed = 0 left = 20 while True: guess=input("GUESS THE NUMBER AM THINKING OF/>> " ![]() if guess.isalpha(): print (" sorry,you must enter a digit " ![]() print("" ![]() else: if int(guess) == number: print("" ![]() print("###################################" ![]() print("# CONGRATULATIONS #" ![]() print("# YOU WON #" ![]() print("###################################" ![]() break elif int(guess) > Max: print ("your guess is a bit too high...." ![]() print("" ![]() elif int(guess) < minn: print (" your guess is a little too low..." ![]() print("" ![]() elif failed == 20: print (" you have exhausted your chances..." ![]() print("" ![]() print ("##################################" ![]() print ("# GAME OVER #" ![]() print("##################################" ![]() print("" ![]() print(" [ game by VITRIOL ] " ![]() break elif left==1: print("wrong guess, try again .. " ![]() failed+=1 left-=1 print("your last attempt... " ![]() print("" ![]() else: print("wrong guess, try again .. " ![]() failed+=1 left-=1 print (left," attempt(s) left.." ![]() print ("" ![]() this is the python code..
|
please add me to any active whatsapp group abeg even adult...or whatever whatsapp is getting boring....0814 012 3075 |
A guy goes to the pharmacist and says, ‘Listen, these two girls are coming over this weekend, and they are hot, very hot. Would you have something to get me going all night? It's going to be a hell of a party.’ The pharmacist goes in the back room, comes back with an old dusty bottle and says, ‘This stuff is potent: drink only one ounce of it, and I guarantee that you will be doing the wild thing all night. Let me know how it goes.’ The weekend goes by and on Monday morning, the pharmacist goes to work and finds the same guy waiting for him on the door-step. The pharmacist says, ‘What are you doing here so early? How was your weekend?’ The guy replies, ‘Quick, I need Blue Ice (muscle pain relief). The pharmacist, knowing what the guy had been doing all weekend, says, ‘Are you crazy, you can't put that on your penis. The skin is way too sensitive.’ The guy says, ‘No, no, It's not for that, it's for my arm.’ Pharmacist: ‘What?? What happened?’ Guy replies, ‘Well...I drank the whole bottle of your potion.’ Pharmacist: ‘Oh my god, and then what ? ‘ ‘The girls never showed up!’ |
yes I linked it ooo...av been running some jquery codes that's the only one not working... |
I knew it was working but maybe its cuz am running it on my android and not on computer...tanx |
I tried that too ooo |
Please can you help me check this code??.. The idea is to change the text on the button when it is clicked... <input type="button" id="toggle" value="change"/> $('#toggle').on('click',function(){ var text=$('#toggle').text(); if(text=='change'){ $('#toggle').text('text changed'); }else if(text=='change'){ $('#toggle').text('change'); } I also tried... $('#toggle').attr('value'); But it still didn't work So tell me why its not working and am running the code on my android phone so could that also be the reason ?? |
I have a Php group but its still small so if there's any one please add me... +2348140123075 |
drop your number if interested in php whatsapp group....there could be HTML and CSS too... |
sex feels like a dream ..when you just finished having sex,it kinda feels like a dream cuz for me ,its always hard to imaging it even happened...true or false?? |
why does sex feel like it never happened after you just had it?? |
hey guys,the following Php code uses sessions to restrict login access after a number of failed attempts more than 3 times...the code is just basic I.e no stripslashes and validation... <?php session_start(); if(isset($_SESSION["BAN"])){ echo "<font color='red'>you can no longer login for this session,<font color='blue'>please restart your browser</font></font>"; }else{ if(isset($_POST["submit"])){ $name=$_POST["name"]; $_SESSION["FAIL"]; if($name!="emmy" {$_SESSION["FAIL"]++; echo "<font color='red'>wrong password...try again </font><br>"; //echo "wrong by ".$_SESSION["FAIL"]." time(s)<br>"; }else{ echo "access granted.... <br> "; } if($_SESSION["FAIL"]>3){ $_SESSION["BAN"]="bad"; echo "you entered the wrong password too many times"; //header("location:pat.php" ;} } echo <<< DOC <form action="form.php" method="post"> <input type="text"name="name"/> <input type="submit"name="submit"/> </form> DOC; } ?> enjoy...just comment and add your contributions |
yes oooooo....na sin of the flesh...lol (abi na skin)...haha |
hey guys, there's this girlfriend of mine that's so so cool ,kinda shy and really innocent...the thing is her boobs make me crazy and I just need to tell her how I feel about them but feel maybe it'll ruin everything cuz I don't know if she would like that sort from me....should I risk it to let her know am into sex and stuff..... |
am not sure any girl would ask such except maybe she has low self esteem....(my opinion) |
please is computer science course difficult??...I want to take it at uni agric makurdi... |
please does anyone know whether uni agric makurdi has computer science course??... |
I always hear people saying that speaking clean English in a relationship makes it more serious compared to broken English....has anyone experienced it to be true??... |
please guys ,is zee black soap and high white cream a good combination for a dark skinned person ?? |
please,I just needed you guys opinion on how to deal with snobby ladies..I read on an American forum but their own opinions where "kill the girl with kindness and stuff" but I want to hear it from you guys... |
there is this girl I've had my eyes on real closely...she's very innocent and shy.Av observed from her dressing that she's really innocent (she even wears tights under her skirts) but I've heard a lot of rumors from guys who claim they have been there (you know) also heard she works at a knock shop at nights...my point...is it possible for someone like that to actually do what I've heard??,... |
I heard that most girls who are real cool and seem to be innocent turn out to be crazy in the room.... is it true?? (just need to be sure so I don't embarrass myself )... |
