There are a few errors in the code you provided. Here's the corrected version:

n = input().split()
for t in n:
    if t == 'F':
        print("True")
        break
else:
    print("False")

Changes made:

  1. Added t as the loop variable in the for loop.
  2. Corrected the condition in the if statement from t to t == 'F'.
n = inputsplitfor i in n if t == F printTrue breakelse printFalse这段代码哪里错了帮我改一改pythonpython

原文地址: https://www.cveoy.top/t/topic/hGBt 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录