Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating A Simple Random Username And Password Generator With Python
#1
# A simple random username and password generator

print ("what is your first name?")
raw_input1 = input()
print ("what is your last name?")
raw_input2 = input()

def main():
print ("This program generates computer usernames.")
print
# get user’s first and last names
first = raw_input1
last = raw_input2
# concatenate first initial with 7 chars of the last name.
uname = first[0] + last[:7]
# output the username
print ("Your username is:", uname)

print ("AND")
uname2 = first[1] + '23' + last[2] +'34'
print ("your password is:", uname2)

main()
#2
hmmmm, brilliant one bro.
It takes so long to learn simplicity.
Reply
#3
Language? Python?
I'm Eunit99... Wanna know more about me? Then head over to https://is.gd/mybiography
Reply
#4
(12-30-2016, 05:14 PM)eunit99 Wrote:
Language? Python?


Yeah, python.
It takes so long to learn simplicity.
Reply
#5
(12-30-2016, 12:29 PM)Dealwap Wrote:
hmmmm, brilliant one bro.


Thanks
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  FUN: Rhombus With Python Mbabalawlar 0 35 01-06-2018, 10:00 PM
Last Post: Mbabalawlar
  FUN: Love Calculator With Python Mbabalawlar 0 66 01-06-2018, 09:56 PM
Last Post: Mbabalawlar
  TUTORIAL: My First Project Quiz In Python Programming Mbabalawlar 0 62 01-06-2018, 09:50 PM
Last Post: Mbabalawlar
  SHARED: Why Learn Python? cheatex 5 403 04-27-2017, 08:54 PM
Last Post: Horlahcoded
  Python Program To Solve Quadratic Equation Dealwap 4 599 12-10-2016, 08:43 AM
Last Post: Dealwap
  Awesome Python Tricks A Beginner Should Know smartlord 8 613 12-04-2016, 01:48 PM
Last Post: Ahkohd
  How To Validate User's Input In Python Ahkohd 1 278 12-03-2016, 12:39 PM
Last Post: Dealwap
  Check If A Variable Is Defined Or Not In Python Ahkohd 0 228 12-03-2016, 09:42 AM
Last Post: Ahkohd
  Why You Should Learn Python As Your First Programming Language Dealwap 0 315 11-04-2016, 07:37 AM
Last Post: Dealwap
  Learn Python From Scratch Here On Nct Dealwap 8 704 11-02-2016, 04:50 PM
Last Post: Sakpobi Maro



Users browsing this thread: 1 Guest(s)

About Nigeria's Creative Talents

Nigeria's Creative Talents is an online community where every creative Nigerians can share ideas with themselves.

For any more information, please use our contact form.

              User Links

              Advertise