Python 我能做些什么使数字不带符号?

Python 我能做些什么使数字不带符号?,python,Python,我的代码有什么问题?几周前我开始使用python,我正在尝试制作一个可定制的随机密码生成器。我想给用户选项,让它完全大写,完全小写或正常(每个不同的字在开始时大写)。我还希望他们可以选择是否有数字或符号。每次我运行程序时,它都不允许我有没有符号的数字。怎么了 对于那些刚刚回复说要显示错误和内容的人,我实际上只是注册了stack overflow,它说我还不能上传图片,我该怎么做 import random def password(): normal_adjectives = ['Fu

我的代码有什么问题?几周前我开始使用python,我正在尝试制作一个可定制的随机密码生成器。我想给用户选项,让它完全大写,完全小写或正常(每个不同的字在开始时大写)。我还希望他们可以选择是否有数字或符号。每次我运行程序时,它都不允许我有没有符号的数字。怎么了

对于那些刚刚回复说要显示错误和内容的人,我实际上只是注册了stack overflow,它说我还不能上传图片,我该怎么做

import random

def password():
    normal_adjectives = ['Funny', 'Amazing', 'Infinity', 'Fabulous', 'Red', 'Rainbow', 'Adorable', 'Adventurous', 'Impressive', 'Determined',
                  'Delighted', 'Scary', 'Active', 'Distinct', 'Eager', 'Elegant', 'Excited', 'Enchanted', 'Fair', 'Fierce', 'Fancy',
                  'Gentle', 'Glamorous', 'Graceful', 'Happy', 'Handsome', 'Hungry', 'Fluffy', 'Important', 'Itchy', 'Impossible',
                  'Jealous', 'Joyous', 'Jolly', 'Kind', 'Caring', 'Lazy', 'Lonely', 'Lucky', 'Lovely', 'Magnificent', 'Modern',
                'Mysterious', 'Naughty', 'Nervous', 'Nice', 'Obnoxious', 'Outrageous', 'Outstanding', 'Perfect', 'Pleasant',
                'Powerful', 'Precious', 'Proud', 'Real', 'Rich', 'Smily', 'Sleepy', 'Sore', 'Sparkling', 'Splendid',
                'Stormy', 'Strange', 'Super', 'Talented', 'Tense', 'Tender', 'Terrible', 'Thankful', 'Thoughtful',
                'Tired', 'Tough', 'Troubled', 'Unusual', 'Vast', 'Victorious', 'Vicious', 'Slick', 'Weary', 'Wicked',
                'Wild', 'Worried', 'Zealous', 'Orange', 'Yellow', 'Green', 'Blue', 'Pink', 'Purple', 'Indigo', 'Violet',
                'Affectionate', 'Stubborn', 'Confused', 'Sticky', 'Slimy', 'Hairless', 'Hairy']

    normal_nouns = ['Cheetah', 'Book', 'Chair', 'Pigeon', 'Dolphin', 'Actor', 'Animal', 'Apple', 'Balloon', 'Banana', 'Battery',
            'Bed', 'Boy', 'Branch', 'Car', 'Candle', 'Carpet', 'Crayon', 'Diamond', 'Dream', 'Dress', 'Egg', 'Eggplant',
            'Elephant', 'Eye', 'Fish', 'Forest', 'Football', 'Fountain', 'Garage', 'Gold', 'Grass', 'Guitar', 'Hamburger',
            'Helmet', 'Horse', 'Penguin', 'Honey', 'Ice', 'Insect', 'Iron', 'Jelly', 'Juice', 'Kangaroo', 'Kite', 'Knife',
            'Lamp', 'Lion', 'Lizard', 'Lunch', 'Magazine', 'Monkey', 'Microphone', 'Nail', 'Needle', 'Notebook', 'Ocean',
            'Oil', 'Oyster', 'Ghost', 'Parrot', 'Piano', 'Pizza', 'Pillow', 'Planet', 'Queen', 'Rainbow', 'Restaurant',
            'River', 'Rose', 'Sandwich', 'Shampoo', 'Sugar', 'Stone', 'Spoon', 'Shoe', 'Phone', 'Telephone', 'Television',
            'Tent', 'Tomato', 'Toothbrush', 'Train', 'Truck', 'Umbrella', 'Vase', 'Vegetable', 'Vulture', 'Wall', 'Whale',
            'Wizard', 'Window', 'Wire', 'Xylophone', 'Yacht', 'Zebra', 'Glass', 'Gas', 'Budgie', 'Snake', 'Chimpanzee']

    funny_adjectives = ['Hairy', 'Crazy', 'Hysterical', 'Funny', 'Feisty', 'Chunky', 'Fluffy', 'Hungry', 'Itchy', 'Jolly',
                        'Modern', 'Naughty', 'Obnoxious', 'Outrageous', 'Smily', 'Troubled', 'Wild', 'Brown', 'Hairless',
                        'Slimy', 'Sticky', 'Confused', 'Stubborn', 'Idiotic', 'Affectionate', 'Determined', 'Feeble'
                        'Flying', 'Helpless', 'Hopeful', 'Dead']

    funny_nouns = ['Monkey', 'Toaster', 'Lettuce', 'Kitty', 'ElasticBand', 'Arms', 'Legs', 'ToiletSeat', 'DeathWish',
                   'Pigeon', 'Egg', 'Grass', 'Hamburger', 'Shampoo', 'Door', 'Wall', 'FishEye', 'FluffBall', 'Sardine',
                   'Blubber', 'Gargoyle', 'Goggles', 'Hedge', 'Shrub', 'Squelch', 'Donkey', 'Pepper']

    animal_adjectives = ['Flying', 'Epic', 'Hissing', 'Swift', 'Fast', 'Amazing', 'Growling', 'Snarling', 'Frisky',
                         'Amphibious', 'Exotic', 'Feral', 'Wild', 'Dead', 'Scary', 'Fluffy', 'Domestic', 'Tame',
                         'Vicious', 'Graceful', 'Predatory', 'Aquatic', 'Screeching', 'Adorable']

    animal_nouns = ['Cat', 'Snake', 'Dog', 'Monkey', 'Budgie', 'Bird', 'Ant', 'Anteater', 'Fish', 'Sardine', 'Chimpanzee',
                    'Clownfish', 'Lionfish', 'Bear', 'Lion', 'Tiger', 'Elephant', 'Hippo', 'Rhinoceros', 'Frog', 'Wolf',
                    'Buffalo', 'Eagle', 'Hawk', 'Albatross', 'Lynx', 'PolarBear', 'Snowcat', 'Lizard', 'Crocodile',
                    'Alligator', 'Parrot', 'Badger', 'Beaver', 'Crow', 'Squirrel', 'Dragon', 'Cheetah', 'Pigeon',
                    'Dolphin', 'Kangaroo', 'Fly', 'Insect', 'Horse', 'Penguin', 'Squid', 'Octopus', 'Vulture',
                    'Zebra', 'Kitten', 'Donkey', 'Antelope', 'Echidna', 'Pelican', 'Baboon', 'Bee', 'Swan', 'Tapir',
                    'Hyena', 'Lemur', 'Pig', 'Cow', 'Sheep', 'Camel', 'Giraffe', 'Cobra', 'Crab', 'Crane', 'Dingo',
                    'Fox', 'Dove', 'JayBird', 'Owl', 'Hedgehog', 'Elk', 'Emu', 'Falcon', 'Turtle', 'Hornet', 'Wasp',
                    'Ibis', 'Jackal', 'Koala']

    landmarks_adjectives = ['Tall', 'Sparkling', 'Dazzling', 'White', 'Sandy', 'Rocky', 'Big', 'Large', 'Golden', 'Amazing',
                            'Inccredible']

    landmarks_nouns = ['EiffelTower', 'TowerOfPisa', 'Colosseum', 'WhiteHouse', 'TajMahal', 'WallOfChina', 'StatueOfLiberty',
                       'PyramidOfGiza', 'Uluru', 'OperaHouse', 'ParliamentHouse', 'LondonEye', 'Stonehenge',
                       'GoldenGateBridge']

    food_adjectives = ['Delicious', 'Juicy', 'Luxurious', 'Warm', 'Salty', 'Spicy', 'Flavoursome', 'Bitter', 'Enjoyable',
                       'Delectable', 'Crunchy', 'Sweet', 'Sour', 'Savoury', 'Divine', 'Fruity', 'Appetising', 'Heavenly',
                       'Hot', 'Lush', 'Mouthwatering', 'Incredible', 'Horrid', 'Peppery', 'Pungent', 'Pleasant',
                       'Rich', 'Scrumptious', 'Sharp', 'Strong', 'Succulent', 'Sugary', 'Saline', 'Tasteless', 'Tasty',
                       'Yummy']

    food_nouns = ['Apple', 'Banana', 'Hamburger', 'Burger', 'Cheeseburger', 'Strawberry', 'Steak', 'Pasta', 'Mince',
                  'Fry', 'Chip', 'Avocado', 'Blueberry', 'Orange', 'Egg', 'Chicken', 'Coconut', 'Asparagus', 'Broccoli',
                  'Cauliflower', 'Carrot', 'Cucumber', 'Garlic', 'Kale', 'Tomato', 'Salmon', 'Cereal', 'Fruit',
                  'Bread', 'Cookie', 'Cheese', 'Yoghurt', 'Milk', 'Juice', 'Eggplant', 'Jelly', 'Honey', 'Pizza']

    harrypotter_adjectives = ['Magical', 'Swish', 'Flick', 'Transforming', 'Brave', 'Bold', 'Invisible', 'Dead', 'Forbidden',
                              'Mysterious', 'Secret']

    harrypotter_nouns = ['HarryPotter', 'Dumbledore', 'Snape', 'Weasley', 'Hermione', 'McGonagall', 'SiriusBlack',
                         'Hagrid', 'Hedwig', 'Dobby', 'Voldemort', 'Mad-EyeMoody', 'Malfoy', 'Lovegood', 'Longbottom',
                         'DeathlyHallows', 'Umbridge', 'Lupin', 'Scamander', 'Nagini', 'Lestrange', 'Dursley', 'Tonks',
                         'Transfiguration', 'Gryffindor', 'Ravenclaw', 'Slytherin', 'Hufflepuff', 'Hogwarts', 'Magic']

    cats_adjectives = ['Fuzzy', 'Furry', 'Agile', 'Clever', 'Precise', 'Patient', 'Hunter', 'Loud', 'Lethal', 'Lazy',
                       'Predatory', 'Energetic', 'Sleepy', 'Loyal', 'Adorable', 'Cute', 'Passionate']

    cats_nouns = ['Feline', 'Cat', 'Meow', 'Purr', 'Hiss', 'Persian', 'Bengal', 'MaineCoon', 'Siamese', 'Sphynx', 'Ragdoll',
                  'Abyssinian']

    dogs_adjectives = ['Friendly', 'Loyal', 'Loud', 'Adorable', 'Cute', 'Passionate', 'Strong', 'Smelly', 'Protective',
                       'Smart', 'Obedient']

    dogs_nouns = ['Woof', 'Dog', 'GermanShepherd', 'Labrador', 'Retriever', 'Husky', 'Poodle', 'Bulldog', 'Pug', 'Chihuahua',
                  'Rottweiler', 'Maltese', 'Terrier', 'ChowChow']

    numbers = random.randint(1,100)

    symbols = ['!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '\'', '-', '_', '+', '=', '`', '~', '[', '{', ']', '}', '|',
             '<', '.', '>', '/', '?']

    result_normal = random.choice(normal_adjectives) + random.choice(normal_nouns)
    result_funny = random.choice(funny_adjectives) + random.choice(funny_nouns)
    result_animal = random.choice(animal_adjectives) + random.choice(animal_nouns)
    result_landmarks = random.choice(landmarks_adjectives) + random.choice(landmarks_nouns)
    result_food = random.choice(food_adjectives) + random.choice(food_nouns)
    result_potter = random.choice(harrypotter_adjectives) + random.choice(harrypotter_nouns)
    result_cats = random.choice(cats_adjectives) + random.choice(cats_nouns)
    result_dogs = random.choice(dogs_adjectives) + random.choice(dogs_nouns)

    case = input('Would you like your password in lowercase, uppercase or normal? (lower, upper, normal) ')
    number_want = input('Do you want numbers? y/n ')
    symbol_want = input('Do you want symbols? y/n ')
    theme = input('Enter in the theme for your password (normal/funny/animal/landmarks/food/harry potter/cats/dogs) ')

    if case == 'upper':
        result_normal = result_normal.upper()
        result_funny = result_funny.upper()
        result_animal = result_animal.upper()
        result_landmarks = result_landmarks.upper()
        result_food = result_food.upper()
        result_potter = result_potter.upper()
        result_cats = result_cats.upper()
        result_dogs = result_dogs.upper()

    if case == 'lower':
        result_normal = result_normal.lower()
        result_funny = result_funny.lower()
        result_animal = result_animal.lower()
        result_landmarks = result_landmarks.lower()
        result_food = result_food.lower()
        result_potter = result_potter.lower()
        result_cats = result_cats.lower()
        result_dogs = result_dogs.lower()

    if number_want == 'y':
        result_normal = result_normal + str(numbers)
        result_funny = result_funny + str(numbers)
        result_animal = result_animal + str(numbers)
        result_landmarks = result_landmarks + str(numbers)
        result_food = result_food + str(numbers)
        result_potter = result_potter + str(numbers)
        result_cats = result_cats + str(numbers)
        result_dogs = result_dogs + str(numbers)

    if symbol_want == 'y':
        result_normal = result_normal + random.choice(symbols)
        result_funny = result_funny + random.choice(symbols)
        result_animal = result_animal + random.choice(symbols)
        result_landmarks = result_landmarks + random.choice(symbols)
        result_food = result_food + random.choice(symbols)
        result_potter = result_potter + random.choice(symbols)
        result_cats = result_cats + random.choice(symbols)
        result_dogs = result_dogs + random.choice(symbols)

        if theme=='normal':
            print(result_normal)
            print('Your new password is ' + result_normal)
        elif theme=='funny':
            print(result_funny)
            print('Your new password is ' + result_funny)
        elif theme=='animal':
            print(result_animal)
            print('Your new password is ' + result_animal)
        elif theme=='landmarks':
            print(result_landmarks)
            print('Your new password is ' + result_landmarks)
        elif theme=='food':
            print(result_food)
            print('Your new password is ' + result_food)
        elif theme=='harry potter':
            print(result_potter)
            print('Your new password is ' + result_potter)
        elif theme=='cats':
            print(result_cats)
            print('Your new password is ' + result_cats)
        elif theme=='dogs':
            print(result_dogs)
            print('Your new password is ' + result_dogs)
        else:
            print(theme + ' is not a valid theme!')

    other_p = input('Would you like another password? y/n ')

    if other_p == 'y':
        password()

start = input('Welcome to the Python Password Generator! Type the word start to start! ')

if start == 'start':
    password()
else:
   print('Type \'start\' to start, not ' + start)
随机导入
def password():
正常形容词=[“有趣”、“神奇”、“无限”、“神话”、“红色”、“彩虹”、“可爱”、“冒险”、“令人印象深刻”、“坚定”,
‘高兴’、‘恐怖’、‘活跃’、‘独特’、‘渴望’、‘优雅’、‘兴奋’、‘迷人’、‘公平’、‘激烈’、‘幻想’,
‘温柔’、‘迷人’、‘优雅’、‘快乐’、‘英俊’、‘饥饿’、‘蓬松’、‘重要’、‘发痒’、‘不可能’,
‘嫉妒’、‘快乐’、‘快乐’、‘善良’、‘关心’、‘懒惰’、‘孤独’、‘幸运’、‘可爱’、‘华丽’、‘现代’,
‘神秘’、‘顽皮’、‘紧张’、‘友好’、‘讨厌’、‘离谱’、‘杰出’、‘完美’、‘愉快’,
‘强大’、‘珍贵’、‘骄傲’、‘真实’、‘富有’、‘微笑’、‘困倦’、‘酸痛’、‘闪闪发光’、‘辉煌’,
‘暴风雨’、‘奇怪’、‘超级’、‘天才’、‘紧张’、‘温柔’、‘可怕’、‘感激’、‘体贴’,
“疲倦”、“艰难”、“麻烦”、“不同寻常”、“广阔”、“胜利”、“邪恶”、“圆滑”、“疲惫”、“邪恶”,
“狂野”、“忧虑”、“热情”、“橙色”、“黄色”、“绿色”、“蓝色”、“粉色”、“紫色”、“靛蓝”、“紫色”,
“深情的”、“固执的”、“困惑的”、“黏糊糊的”、“粘糊糊的”、“无毛的”、“多毛的”]
正常名词=[“猎豹”、“书”、“椅子”、“鸽子”、“海豚”、“演员”、“动物”、“苹果”、“气球”、“香蕉”、“电池”,
‘床’、‘男孩’、‘树枝’、‘汽车’、‘蜡烛’、‘地毯’、‘蜡笔’、‘钻石’、‘梦想’、‘连衣裙’、‘鸡蛋’、‘茄子’,
‘大象’、‘眼睛’、‘鱼’、‘森林’、‘足球’、‘喷泉’、‘车库’、‘黄金’、‘草’、‘吉他’、‘汉堡包’,
“头盔”、“马”、“企鹅”、“蜂蜜”、“冰”、“昆虫”、“铁”、“果冻”、“果汁”、“袋鼠”、“风筝”、“刀”,
“灯”、“狮子”、“蜥蜴”、“午餐”、“杂志”、“猴子”、“麦克风”、“钉子”、“针”、“笔记本”、“海洋”,
“油”、“牡蛎”、“幽灵”、“鹦鹉”、“钢琴”、“比萨饼”、“枕头”、“行星”、“女王”、“彩虹”、“餐厅”,
‘河流’、‘玫瑰’、‘三明治’、‘洗发水’、‘糖’、‘石头’、‘汤匙’、‘鞋子’、‘电话’、‘电视’,
“帐篷”、“西红柿”、“牙刷”、“火车”、“卡车”、“雨伞”、“花瓶”、“蔬菜”、“秃鹫”、“墙”、“鲸鱼”,
‘巫师’、‘窗户’、‘电线’、‘木琴’、‘游艇’、‘斑马’、‘玻璃’、‘煤气’、‘鹦鹉’、‘蛇’、‘黑猩猩’]
有趣的形容词=[‘毛茸茸的’、‘疯狂的’、‘歇斯底里的’、‘有趣的’、‘活泼的’、‘矮胖的’、‘毛茸茸的’、‘饥饿的’、‘发痒的’、‘快乐的’,
‘现代’、‘淘气’、‘讨厌’、‘无耻’、‘微笑’、‘烦恼’、‘狂野’、‘棕色’、‘无毛’,
“黏糊糊的”、“粘糊糊的”、“困惑的”、“固执的”、“白痴的”、“深情的”、“坚定的”、“虚弱的”
‘飞翔’、‘无助’、‘希望’、‘死亡’]
有趣的名词=[‘猴子’、‘烤面包机’、‘生菜’、‘小猫’、‘松紧带’、‘胳膊’、‘腿’、‘马桶座’、‘死亡之翼’,
“鸽子”、“鸡蛋”、“草”、“汉堡包”、“洗发水”、“门”、“墙”、“鱼眼”、“毛球”、“沙丁鱼”,
‘鲸脂’、‘石像鬼’、‘护目镜’、‘树篱’、‘灌木’、‘静噪’、‘驴子’、‘胡椒’]
动物_形容词=[‘飞行’、‘史诗’、‘嘶嘶’、‘快速’、‘惊人’、‘咆哮’、‘咆哮’、‘活泼’,
‘两栖’、‘异国’、‘野性’、‘野性’、‘死亡’、‘恐怖’、‘毛茸茸’、‘家养’、‘驯服’,
‘邪恶’、‘优雅’、‘掠夺’、‘水生’、‘尖叫’、‘可爱’]
动物名词=[“猫”、“蛇”、“狗”、“猴”、“鹦鹉”、“鸟”、“蚂蚁”、“食蚁兽”、“鱼”、“沙丁鱼”、“黑猩猩”,
‘小丑鱼’、‘狮子鱼’、‘熊’、‘狮子’、‘老虎’、‘大象’、‘河马’、‘犀牛’、‘青蛙’、‘狼’,
‘水牛’、‘鹰’、‘鹰’、‘信天翁’、‘猞猁’、‘北极熊’、‘雪猫’、‘蜥蜴’、‘鳄鱼’,
‘鳄鱼’、‘鹦鹉’、‘獾’、‘海狸’、‘乌鸦’、‘松鼠’、‘龙’、‘猎豹’、‘鸽子’,
“海豚”、“袋鼠”、“苍蝇”、“昆虫”、“马”、“企鹅”、“乌贼”、“章鱼”、“秃鹫”,
斑马、小猫、驴、羚羊、针鼹、鹈鹕、狒狒、蜜蜂、天鹅、貘、,
‘鬣狗’、‘狐猴’、‘猪’、‘牛’、‘羊’、‘骆驼’、‘长颈鹿’、‘眼镜蛇’、‘螃蟹’、‘鹤’、‘野狗’,
“狐狸”、“鸽子”、“知更鸟”、“猫头鹰”、“刺猬”、“麋鹿”、“鸸鹋”、“猎鹰”、“海龟”、“大黄蜂”、“黄蜂”,
‘宜必思’、‘豺狼’、‘考拉’]
地标(形容词)=["高","亮","亮","白","沙","石",
“不可信”]
地标(名词)=[“埃菲尔铁塔”、“塔罗菲萨”、“斗兽场”、“白宫”、“塔吉玛哈尔”、“中国墙”、“自由女神像”,
“吉萨金字塔”、“乌鲁鲁鲁”、“歌剧院”、“议会大厦”、“伦敦眼”、“巨石阵”,
“黄金大桥”]
食物形容词=[“美味”、“多汁”、“奢华”、“温暖”、“咸”、“辣”、“美味”、“苦”、“享受”,
“美味的”、“松脆的”、“甜的”、“酸的”、“可口的”、“神圣的”、“水果的”、“开胃的”、“天堂的”,
“辣的”、“郁郁葱葱的”、“令人垂涎三尺的”、“不可思议的”、“可怕的”、“辣的”、“辛辣的”、“令人愉悦的”,
“富有”、“美味”、“锋利”、“强壮”、“多汁”
import random

def password():
    normal_adjectives = ['Funny', 'Amazing', 'Infinity', 'Fabulous', 'Red', 'Rainbow', 'Adorable', 'Adventurous', 'Impressive', 'Determined',
                  'Delighted', 'Scary', 'Active', 'Distinct', 'Eager', 'Elegant', 'Excited', 'Enchanted', 'Fair', 'Fierce', 'Fancy',
                  'Gentle', 'Glamorous', 'Graceful', 'Happy', 'Handsome', 'Hungry', 'Fluffy', 'Important', 'Itchy', 'Impossible',
                  'Jealous', 'Joyous', 'Jolly', 'Kind', 'Caring', 'Lazy', 'Lonely', 'Lucky', 'Lovely', 'Magnificent', 'Modern',
                'Mysterious', 'Naughty', 'Nervous', 'Nice', 'Obnoxious', 'Outrageous', 'Outstanding', 'Perfect', 'Pleasant',
                'Powerful', 'Precious', 'Proud', 'Real', 'Rich', 'Smily', 'Sleepy', 'Sore', 'Sparkling', 'Splendid',
                'Stormy', 'Strange', 'Super', 'Talented', 'Tense', 'Tender', 'Terrible', 'Thankful', 'Thoughtful',
                'Tired', 'Tough', 'Troubled', 'Unusual', 'Vast', 'Victorious', 'Vicious', 'Slick', 'Weary', 'Wicked',
                'Wild', 'Worried', 'Zealous', 'Orange', 'Yellow', 'Green', 'Blue', 'Pink', 'Purple', 'Indigo', 'Violet',
                'Affectionate', 'Stubborn', 'Confused', 'Sticky', 'Slimy', 'Hairless', 'Hairy']

    normal_nouns = ['Cheetah', 'Book', 'Chair', 'Pigeon', 'Dolphin', 'Actor', 'Animal', 'Apple', 'Balloon', 'Banana', 'Battery',
            'Bed', 'Boy', 'Branch', 'Car', 'Candle', 'Carpet', 'Crayon', 'Diamond', 'Dream', 'Dress', 'Egg', 'Eggplant',
            'Elephant', 'Eye', 'Fish', 'Forest', 'Football', 'Fountain', 'Garage', 'Gold', 'Grass', 'Guitar', 'Hamburger',
            'Helmet', 'Horse', 'Penguin', 'Honey', 'Ice', 'Insect', 'Iron', 'Jelly', 'Juice', 'Kangaroo', 'Kite', 'Knife',
            'Lamp', 'Lion', 'Lizard', 'Lunch', 'Magazine', 'Monkey', 'Microphone', 'Nail', 'Needle', 'Notebook', 'Ocean',
            'Oil', 'Oyster', 'Ghost', 'Parrot', 'Piano', 'Pizza', 'Pillow', 'Planet', 'Queen', 'Rainbow', 'Restaurant',
            'River', 'Rose', 'Sandwich', 'Shampoo', 'Sugar', 'Stone', 'Spoon', 'Shoe', 'Phone', 'Telephone', 'Television',
            'Tent', 'Tomato', 'Toothbrush', 'Train', 'Truck', 'Umbrella', 'Vase', 'Vegetable', 'Vulture', 'Wall', 'Whale',
            'Wizard', 'Window', 'Wire', 'Xylophone', 'Yacht', 'Zebra', 'Glass', 'Gas', 'Budgie', 'Snake', 'Chimpanzee']

    funny_adjectives = ['Hairy', 'Crazy', 'Hysterical', 'Funny', 'Feisty', 'Chunky', 'Fluffy', 'Hungry', 'Itchy', 'Jolly',
                        'Modern', 'Naughty', 'Obnoxious', 'Outrageous', 'Smily', 'Troubled', 'Wild', 'Brown', 'Hairless',
                        'Slimy', 'Sticky', 'Confused', 'Stubborn', 'Idiotic', 'Affectionate', 'Determined', 'Feeble'
                        'Flying', 'Helpless', 'Hopeful', 'Dead']

    funny_nouns = ['Monkey', 'Toaster', 'Lettuce', 'Kitty', 'ElasticBand', 'Arms', 'Legs', 'ToiletSeat', 'DeathWish',
                   'Pigeon', 'Egg', 'Grass', 'Hamburger', 'Shampoo', 'Door', 'Wall', 'FishEye', 'FluffBall', 'Sardine',
                   'Blubber', 'Gargoyle', 'Goggles', 'Hedge', 'Shrub', 'Squelch', 'Donkey', 'Pepper']

    animal_adjectives = ['Flying', 'Epic', 'Hissing', 'Swift', 'Fast', 'Amazing', 'Growling', 'Snarling', 'Frisky',
                         'Amphibious', 'Exotic', 'Feral', 'Wild', 'Dead', 'Scary', 'Fluffy', 'Domestic', 'Tame',
                         'Vicious', 'Graceful', 'Predatory', 'Aquatic', 'Screeching', 'Adorable']

    animal_nouns = ['Cat', 'Snake', 'Dog', 'Monkey', 'Budgie', 'Bird', 'Ant', 'Anteater', 'Fish', 'Sardine', 'Chimpanzee',
                    'Clownfish', 'Lionfish', 'Bear', 'Lion', 'Tiger', 'Elephant', 'Hippo', 'Rhinoceros', 'Frog', 'Wolf',
                    'Buffalo', 'Eagle', 'Hawk', 'Albatross', 'Lynx', 'PolarBear', 'Snowcat', 'Lizard', 'Crocodile',
                    'Alligator', 'Parrot', 'Badger', 'Beaver', 'Crow', 'Squirrel', 'Dragon', 'Cheetah', 'Pigeon',
                    'Dolphin', 'Kangaroo', 'Fly', 'Insect', 'Horse', 'Penguin', 'Squid', 'Octopus', 'Vulture',
                    'Zebra', 'Kitten', 'Donkey', 'Antelope', 'Echidna', 'Pelican', 'Baboon', 'Bee', 'Swan', 'Tapir',
                    'Hyena', 'Lemur', 'Pig', 'Cow', 'Sheep', 'Camel', 'Giraffe', 'Cobra', 'Crab', 'Crane', 'Dingo',
                    'Fox', 'Dove', 'JayBird', 'Owl', 'Hedgehog', 'Elk', 'Emu', 'Falcon', 'Turtle', 'Hornet', 'Wasp',
                    'Ibis', 'Jackal', 'Koala']

    landmarks_adjectives = ['Tall', 'Sparkling', 'Dazzling', 'White', 'Sandy', 'Rocky', 'Big', 'Large', 'Golden', 'Amazing',
                            'Inccredible']

    landmarks_nouns = ['EiffelTower', 'TowerOfPisa', 'Colosseum', 'WhiteHouse', 'TajMahal', 'WallOfChina', 'StatueOfLiberty',
                       'PyramidOfGiza', 'Uluru', 'OperaHouse', 'ParliamentHouse', 'LondonEye', 'Stonehenge',
                       'GoldenGateBridge']

    food_adjectives = ['Delicious', 'Juicy', 'Luxurious', 'Warm', 'Salty', 'Spicy', 'Flavoursome', 'Bitter', 'Enjoyable',
                       'Delectable', 'Crunchy', 'Sweet', 'Sour', 'Savoury', 'Divine', 'Fruity', 'Appetising', 'Heavenly',
                       'Hot', 'Lush', 'Mouthwatering', 'Incredible', 'Horrid', 'Peppery', 'Pungent', 'Pleasant',
                       'Rich', 'Scrumptious', 'Sharp', 'Strong', 'Succulent', 'Sugary', 'Saline', 'Tasteless', 'Tasty',
                       'Yummy']

    food_nouns = ['Apple', 'Banana', 'Hamburger', 'Burger', 'Cheeseburger', 'Strawberry', 'Steak', 'Pasta', 'Mince',
                  'Fry', 'Chip', 'Avocado', 'Blueberry', 'Orange', 'Egg', 'Chicken', 'Coconut', 'Asparagus', 'Broccoli',
                  'Cauliflower', 'Carrot', 'Cucumber', 'Garlic', 'Kale', 'Tomato', 'Salmon', 'Cereal', 'Fruit',
                  'Bread', 'Cookie', 'Cheese', 'Yoghurt', 'Milk', 'Juice', 'Eggplant', 'Jelly', 'Honey', 'Pizza']

    harrypotter_adjectives = ['Magical', 'Swish', 'Flick', 'Transforming', 'Brave', 'Bold', 'Invisible', 'Dead', 'Forbidden',
                              'Mysterious', 'Secret']

    harrypotter_nouns = ['HarryPotter', 'Dumbledore', 'Snape', 'Weasley', 'Hermione', 'McGonagall', 'SiriusBlack',
                         'Hagrid', 'Hedwig', 'Dobby', 'Voldemort', 'Mad-EyeMoody', 'Malfoy', 'Lovegood', 'Longbottom',
                         'DeathlyHallows', 'Umbridge', 'Lupin', 'Scamander', 'Nagini', 'Lestrange', 'Dursley', 'Tonks',
                         'Transfiguration', 'Gryffindor', 'Ravenclaw', 'Slytherin', 'Hufflepuff', 'Hogwarts', 'Magic']

    cats_adjectives = ['Fuzzy', 'Furry', 'Agile', 'Clever', 'Precise', 'Patient', 'Hunter', 'Loud', 'Lethal', 'Lazy',
                       'Predatory', 'Energetic', 'Sleepy', 'Loyal', 'Adorable', 'Cute', 'Passionate']

    cats_nouns = ['Feline', 'Cat', 'Meow', 'Purr', 'Hiss', 'Persian', 'Bengal', 'MaineCoon', 'Siamese', 'Sphynx', 'Ragdoll',
                  'Abyssinian']

    dogs_adjectives = ['Friendly', 'Loyal', 'Loud', 'Adorable', 'Cute', 'Passionate', 'Strong', 'Smelly', 'Protective',
                       'Smart', 'Obedient']

    dogs_nouns = ['Woof', 'Dog', 'GermanShepherd', 'Labrador', 'Retriever', 'Husky', 'Poodle', 'Bulldog', 'Pug', 'Chihuahua',
                  'Rottweiler', 'Maltese', 'Terrier', 'ChowChow']

    numbers = random.randint(1,100)

    symbols = ['!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '\'', '-', '_', '+', '=', '`', '~', '[', '{', ']', '}', '|',
             '<', '.', '>', '/', '?']

    result_normal = random.choice(normal_adjectives) + random.choice(normal_nouns)
    result_funny = random.choice(funny_adjectives) + random.choice(funny_nouns)
    result_animal = random.choice(animal_adjectives) + random.choice(animal_nouns)
    result_landmarks = random.choice(landmarks_adjectives) + random.choice(landmarks_nouns)
    result_food = random.choice(food_adjectives) + random.choice(food_nouns)
    result_potter = random.choice(harrypotter_adjectives) + random.choice(harrypotter_nouns)
    result_cats = random.choice(cats_adjectives) + random.choice(cats_nouns)
    result_dogs = random.choice(dogs_adjectives) + random.choice(dogs_nouns)

    case = input('Would you like your password in lowercase, uppercase or normal? (lower, upper, normal) ')
    number_want = input('Do you want numbers? y/n ')
    symbol_want = input('Do you want symbols? y/n ')
    theme = input('Enter in the theme for your password (normal/funny/animal/landmarks/food/harry potter/cats/dogs) ')

    if case == 'upper':
        result_normal = result_normal.upper()
        result_funny = result_funny.upper()
        result_animal = result_animal.upper()
        result_landmarks = result_landmarks.upper()
        result_food = result_food.upper()
        result_potter = result_potter.upper()
        result_cats = result_cats.upper()
        result_dogs = result_dogs.upper()

    if case == 'lower':
        result_normal = result_normal.lower()
        result_funny = result_funny.lower()
        result_animal = result_animal.lower()
        result_landmarks = result_landmarks.lower()
        result_food = result_food.lower()
        result_potter = result_potter.lower()
        result_cats = result_cats.lower()
        result_dogs = result_dogs.lower()

    if number_want == 'y':
        result_normal = result_normal + str(numbers)
        result_funny = result_funny + str(numbers)
        result_animal = result_animal + str(numbers)
        result_landmarks = result_landmarks + str(numbers)
        result_food = result_food + str(numbers)
        result_potter = result_potter + str(numbers)
        result_cats = result_cats + str(numbers)
        result_dogs = result_dogs + str(numbers)

    if symbol_want == 'y':
        result_normal = result_normal + random.choice(symbols)
        result_funny = result_funny + random.choice(symbols)
        result_animal = result_animal + random.choice(symbols)
        result_landmarks = result_landmarks + random.choice(symbols)
        result_food = result_food + random.choice(symbols)
        result_potter = result_potter + random.choice(symbols)
        result_cats = result_cats + random.choice(symbols)
        result_dogs = result_dogs + random.choice(symbols)

    if theme=='normal':
        print(result_normal)
        print('Your new password is ' + result_normal)
    elif theme=='funny':
        print(result_funny)
        print('Your new password is ' + result_funny)
    elif theme=='animal':
        print(result_animal)
        print('Your new password is ' + result_animal)
    elif theme=='landmarks':
        print(result_landmarks)
        print('Your new password is ' + result_landmarks)
    elif theme=='food':
        print(result_food)
        print('Your new password is ' + result_food)
    elif theme=='harry potter':
        print(result_potter)
        print('Your new password is ' + result_potter)
    elif theme=='cats':
        print(result_cats)
        print('Your new password is ' + result_cats)
    elif theme=='dogs':
        print(result_dogs)
        print('Your new password is ' + result_dogs)
    else:
        print(theme + ' is not a valid theme!')

    other_p = input('Would you like another password? y/n ')

    if other_p == 'y':
        password()

start = input('Welcome to the Python Password Generator! Type the word start to start! ')

if start == 'start':
    password()
else:
   print('Type \'start\' to start, not ' + start)
case = input('Would you like your password in lowercase, uppercase or normal? (lower, upper, normal) ')
number_want = input('Do you want numbers? y/n ')
symbol_want = input('Do you want symbols? y/n ')
theme = input('Enter in the theme for your password (normal/funny/animal/landmarks/food/harry potter/cats/dogs) ')

if theme == 'normal':
    password = random.choice(normal_adjectives) + random.choice(normal_nouns)
elif theme == 'funny':
    password = random.choice(funny_adjectives) + random.choice(funny_nouns)
elif theme == 'animal':
    password = random.choice(animal_adjectives) + random.choice(animal_nouns)
elif theme == 'landmarks':
    password = random.choice(landmarks_adjectives) + random.choice(landmarks_nouns)
elif theme == 'food':
    password = random.choice(food_adjectives) + random.choice(food_nouns)
elif theme == 'harry potter':
    password = random.choice(harrypotter_adjectives) + random.choice(harrypotter_nouns)
elif theme == 'cats':
    password = random.choice(cats_adjectives) + random.choice(cats_nouns)
elif theme == 'dogs':
   password = random.choice(dogs_adjectives) + random.choice(dogs_nouns)
else:
    print(theme + ' is not a valid theme!')

if case == 'upper':
    password = password.upper()

if case == 'lower':
    password = password.lower()

if number_want == 'y':
    password = password + str(numbers)

if symbol_want == 'y':
    password = password + random.choice(symbols)

print("Your password is:", password)

other_p = input('Would you like another password? y/n ')

if other_p == 'y':
    password()