코딩과외#0

정은경·2020년 2월 26일
0

🧩 Me Today 

목록 보기
15/48
"""

*
**
***
****
*****


"""

# for i in range(1,6):
#     print('*'*i)


"""
함수

입력: 문자열
출력: 트루, 펄스

"((()()()()",

"""

# def test(data):
#     rlt_right = ""
#     rlt_left = ""
#     rlt = ""
#     for i in data:
#         if '(' == i:
#             rlt_left +="("
#             rlt_right += ")"
#         else:
#             rlt = rlt_left + rlt_right
#             rlt_right = ""
#             rlgt_left = ""
#
#     if rlt == data:
#         return True
#     else:
#         return False

"""

"""

# def foo(a: str, op: str, b: str)-> str:
#     num_a = int(a)
#     num_b = int(b)
#     if op == "+":
#         return str(num_a+num_b)
#     if op == "-":
#         return str(num_a-num_b)
#     if op == "*":
#         return str(num_a * num_b)
#     if op == "/":
#         if num_b :
#             return str(num_a/num_b)
#         else:
#             return "none"
#
#
#
# r = foo("1", "+", "2")
# print(t)

# if []:
#     print("a")
# else:
#     print("b")


# a = [1, 2, 3]
# b = (1, 2, 3)

# def foo(a):
#     return a*a
#     print("end")


# def foo(a, b):
#     return {a>b: a, b>a: b}[True]

# [print(i) for i in range(10)]


# def foo(s):
#     rlt = s.replace("   ", " ")
#     rlt = rlt.replace("  "," ")
#     return rlt
#
#
# input = "i   am   a  boy"


"""
for , while
"""

# a = 10
# print(id(10))
# print(id(a))

"""
call of value
call of ref
"""

# a = [1]
# b = [1]
# if a is b:
#     print("same")
# else:
#     print("diff")

"""
oop
"""
profile
#의식의흐름 #순간순간 #생각의스냅샷

0개의 댓글