Open
버튼 클릭 > 지난 강에 만든 폴더 열람test.py
열어보기상단에 아래 같은 메시지가 뜰 경우 클릭하여 설치된 파이썬 버선 선택
sec02
> chap02
> main.py
파일 생성
name = "Python"
print(f"Hello, {name}!")
age = 20
height = 180
description = "Developer"
print(f"Age: {age}, Height: {height}, Description: {description}")
fruits = ["apple", "banana", "cherry"]
print("Fruits List:")
for fruit in fruits:
print(fruit)
if age < 10:
print("This is a young entity.")
else:
print("This is a mature entity.")
def greet(name):
return f"Hello, {name}!"
print(greet("User"))