Ask your own question, for FREE!
Computer Science 16 Online
EpicLeo:

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:

EpicLeo:

I Need to First Upload Assignment Details

EpicLeo:

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())

EpicLeo:

This is One That I Copied and Edited The Variables

hannahclouse:

zxy

EpicLeo:

Is That The Answer ?

hannahclouse:

nah

EpicLeo:

Are You Familar With Advanced Computer Science ?

hannahclouse:

hell nah

hannahclouse:

sorry i mean nah

EpicLeo:

Do You Know of Resources That Can Help ? I Try Finding it But None Appear When I Search

hannahclouse:

no

hannahclouse:

brb

ofrootloops:

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))

ofrootloops:

ur mom

ofrootloops:

i forgot i did that XD

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!