Giới thiệu về bản thân



































Too much screen time is bad for their health. It can cause eye problems, poor sleep, and less physical activity. Teenagers need time to move, play sports, and stay healthy.
Besides, using screens too much makes them lose focus on studying and real-life relationships. When parents set time limits, teenagers can learn how to manage time better.
In addition, less screen time helps them discover new hobbies like reading, drawing, or learning skills.
In conclusion, limiting screen time is important for teenagers’ health, learning, and balanced life.
def UCLN(a, b):
if b == 0:
return a
else:
return UCLN(b, a % b)
# Nhập hai số từ bàn phím
a = int(input("Nhập số nguyên dương
a: "))
b = int(input("Nhập số nguyên dương
b: "))
# Tính và in kết quả
print("Ước chung lớn nhất của",
a, "và", b, "là:", UCLN(a, b))
while True:
try:
a = float(input("Nhập một số thực dương a: "))
if a > 0:
binh_phuong = a ** 2
print(f"Bình phương của a là: {binh_phuong:.2f}")
break
else:
print("Số vừa nhập chưa phải số thực dương. Hãy nhập lại.")
except ValueError:
print("Giá trị nhập vào không hợp lệ. Hãy nhập lại.")
-Mã lỗi: SyntaxError: expected ':'
-Giải thích: Trong câu lệnh if, bỏ quên dấu hai chấm : ở cuối dòng if x < y. Đây là lỗi cú pháp (syntax error).
-Cách khắc phục: Thêm dấu ":"vào cuối dòng . Đồng thời, nên thụt đầu dòng (dùng 4 dấu cách hoặc 1 tab) cho dòng lệnh bên trong if.