X-Received: by 10.182.28.41 with SMTP id y9mr13367017obg.14.1457276105030; Sun, 06 Mar 2016 06:55:05 -0800 (PST) X-Received: by 10.50.111.100 with SMTP id ih4mr136497igb.3.1457276104997; Sun, 06 Mar 2016 06:55:04 -0800 (PST) Path: csiph.com!feeder.erje.net!2.us.feeder.erje.net!news.glorb.com!hb3no11872252igb.0!news-out.google.com!k1ni10474igd.0!nntp.google.com!ok5no6309258igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Sun, 6 Mar 2016 06:55:04 -0800 (PST) In-Reply-To: <1ed89545-f102-4538-bfe2-9d0e3dac8cf5@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=24.133.225.54; posting-account=DvJjRQoAAAAScvdgrMC-JYEouS_UYkyL NNTP-Posting-Host: 24.133.225.54 References: <1ed89545-f102-4538-bfe2-9d0e3dac8cf5@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: password and username code From: =?UTF-8?B?w5ZtZXIgc2FyxLE=?= Injection-Date: Sun, 06 Mar 2016 14:55:05 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.lang.python:104148 5 Mart 2016 Cumartesi 23:52:58 UTC+2 tarihinde =C3=96mer sar=C4=B1 yazd=C4= =B1: > hi , all , l m fresh user and l m trying to learn python by doing practic= e but l got stuck in that , l need help , l m a beginner and l learn some = basic things so far so, plz take in consideration that before command . >=20 > here is my code trial: > #login by using username and password >=20 > loop=3D1 >=20 > paword=3D['1234','5678'] > pawordch=3D["1","2","3","4","5","6","7","8","9","0","/","(",")","*","%","= &","!","a","b","c","d","e","f","g","h","k","l","m","n","o","p","r","s","t",= "y","v","y","z","x"] > name=3D['murat','can','omer','owrasa'] >=20 > while loop=3D=3D1 : > print "welcome my website,plz if you have an account , just login , o= therwise , register plz" > username=3Draw_input("username:") > password=3Draw_input("password:") > if username in name and password in paword: > print "login is successful, and continue page 2" > else : > print" please register" > login_username=3Draw_input ("username:") > login_password=3Draw_input("password:") > for login_password in pawordch: > if login_password in pawordch : > name.append(login_username) > paword.append(login_password) > print "relogin ,plz" > print name ,"",paword > login_username=3Draw_input ("username:") > login_password=3Draw_input("password:") > if login_username in name and login_password in paword: > print "login successful , proceed to page 2" > break > =20 > else: > print "login is unseccesful and please make sure your= username and password is correct" > =20 > =20 > .l would like to do samething when we login a website. l want program if = username is not registered , register first , then store it , and l want pr= ogram ask for some specific characters , like 1,2,3../,%.=20 >=20 > thanks for any clearification in advance for example : some websites ask for a password including some specific char= acters , like one letter, one ( /,%,*,),(,...) so my purpose is to create a= program .first ask for username , then password , then check them , if the= y don't match with stored (username and password ) , make them register and= during that , store "username " and "password" but "password must be inclu= ding 1 letter , 1 sign , and less than 10 length , more than 4 . l don't kn= ow how to do it.as l tried many things but l got error . l hope it would b= e more explaintory as my English is not good enough.thanks for any advice i= n advance best regards.