Skip to content
On this page

02_StrList_06.py

WARNING

โค้ดกาวมากครับ อย่าลอกเลย 😭😭😭

ทำเองเถอะนะครับ จะได้ทำข้อสอบได้ 🥲🥲🥲

py
# pylint: disable=exec-used

def add_vector(u, v):
    return [x + y for (x, y) in zip(u, v)]


def add_vector_with_print(u, v):
    u = list(map(float, u))
    v = list(map(float, v))

    print("{} + {} = {}".format(u, v, add_vector(u, v)))


vector_u = input()
vector_v = input()

exec("add_vector_with_print({}, {})".format(vector_u, vector_v))

People who plagiarize Com Prog HW:

People who do Com Prog HW by themself:

Released under the MIT License