본문 바로가기

Python_Matter

(328)
magic 8 ball Game 코드 Q> magic 8 ball game 코드를 작성하시오. A> import random ans1 = "turquoise Summit" ans2 = "Account Wooden redundant" ans3 = "impactful" ans4 = "Plastic programming fuchsia" ans5 = "compelling" ans6 = "tan invoice Curve" ans7 = "Guilder" ans8 = "Developer" name = input("What you'r name\n") print("{0}! Hello, MyMagic8Ball Game!\n".format(name)) question = input("For advice, just type in a question and hit..
1 ~ 100 까지 세는 코드 Q> 1 ~ 100 까지 세는 코드를 작성하시오. A> number = 1 while number != 101: # number < 101 print(number) number = number + 1
구구단 5단 출력 코드 Q> 구구단 5단을 출력하는 while 문을 작성하시오. A> number = 0 while number < 9: number += 1 print("{0} x 5 = {1}".format(number, number * 5))
2 ~ 20 까지 세는 코드 Q> while 문을 사용하여 2 ~ 20 까지 세는 코드를 작성하시오. A> number = 0 while number < 20: number += 2 print(number)
Acceptable Password VI Quiz> In this mission you need to create a password verification function. Those are the verification conditions: the length should be bigger than 6; should contain at least one digit, but it cannot consist of just digits; having numbers or containing just numbers does not apply to the password longer than 9. a string should not contain the word "password" in any case; should contain 3 different..
Acceptable Password V Quiz> In this mission you need to create a password verification function. Those are the verification conditions: the length should be bigger than 6; should contain at least one digit, but it cannot consist of just digits; having numbers or containing just numbers does not apply to the password longer than 9. a string should not contain the word "password" in any case. Input: A string. Output: A..
Acceptable Password IV Quiz> In this mission you need to create a password verification function. Those are the verification conditions: the length should be bigger than 6; should contain at least one digit, but it cannot consist of just digits; having numbers or containing just numbers does not apply to the password longer than 9. Input: A string. Output: A bool. Example: is_acceptable_password('short') == False is_a..
Acceptable Password III Quiz> In this mission you need to create a password verification function. Those are the verification conditions: the length should be bigger than 6; should contain at least one digit, but cannot consist of just digits. Input: A string. Output: A bool. Example: is_acceptable_password('short') == False is_acceptable_password('muchlonger') == False is_acceptable_password('ashort') == False is_acce..