Start over and make a function with two parameters (x,y) that will add the two numbers together then print the answer. Screenshot of code and terminal:
I Need to First Upload Assignment Details
Since I Complete The Super Boss Level Recently - You Need to Write Similar to Mine Super Boss Level: Not all functions end by printing the result. Sometimes a function’s purpose is to return a value. Modify your code to check for length requirements: from random import randint person = input(“What’s the first name of a famous person –->") city = input(“Name a city –->") char = input(“Type a special character from your keyboard –->") def password_gen(): global person, city, char num = randint(1000,9999) pw = person + str(num)+ city + char return(pw) if len(password_gen()) < 15: print(“Does not meet length requirements”) else: print(“Your password is:”,password_gen())
This is One That I Copied and Edited The Variables
zxy
Is That The Answer ?
nah
Are You Familar With Advanced Computer Science ?
hell nah
sorry i mean nah
Do You Know of Resources That Can Help ? I Try Finding it But None Appear When I Search
no
brb
person = input(“What’s the first name of a famous person –->")james city = input(“Name a city –->")los angeles char = input(“Type a special character from your keyboard –->")# def password_gen():jameslosangles# global person, city, char num = randint(1000,9999)1010 pw = person + str(num)+ city + char return(pw)james1010losangeles# if len(password_gen()) < 15: print(“Does not meet length requirements”) else: print(“Your password is:”,password_gen(password))
ur mom
i forgot i did that XD
Join our real-time social learning platform and learn together with your friends!