# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# # 2.1. Concat few strings

print("hello " "world")

# # 2.2. Concat a lot of strings

with open("lorem.txt", "r") as file:
    mlist = file.read().split(" ")

# %%timeit
" ".join(mlist)

# +
# %%timeit
out = ""

for x in mlist:
    out += x + " "
# -



StarcoderdataJupyterScriptsDedupFiltered