1. 파이참에서 폴더 열기

상단에 아래 같은 메시지가 뜰 경우 클릭하여 설치된 파이썬 버선 선택

Untitled

Untitled


2. 코드 파일 생성하여 실행

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"))