Python File

Xem PDF

Điểm: 400 Thời gian: 1.0s Bộ nhớ: 256M Input: bàn phím Output: màn hình

A file name consists of \(2\) parts: base name and extension name, separated by a dot character. For example, Python
source code files have extension name "py", documents have extension name "doc" or "docx". In Windows OS, file
names are case insensitive.

Write a program to input a file name as string and check whether it is considered Python source code file in
Windows or not.

Input

  • Only one line contain file name \(S (1 < |S| < 128)\). File name will only contain ’a’-’z’,’A’-’Z’,’’ and’_’.

Output

  • If file is a python file, print "yes", otherwise "no".

Example

Test 1

Input
abc.py
Output
yes

Test 2

Input
abc.bin
Output
no

Bình luận


  • 1
    dxuloc    7:49 p.m. 10 Tháng 1, 2024

    sao ko dùng tiếng việt, mắc công lên gu gồ dịch


    • 0
      tula    10:40 p.m. 11 Tháng 6, 2022

      Bài này sao lại 400P ??? 50P là cùng :v

      1 phản hồi

      • 0
        new4letuantu    7:56 p.m. 5 Tháng 1, 2022

        có nên thêm trường hợp đuôi sau là .py + một cái gì đó ko :0

        VD: ok.pyISA

        1 phản hồi

        • -8
          khoa2008    9:26 p.m. 21 Tháng 12, 2021

          Bình luận bị ẩn vì nhiều phản hồi tiêu cực. Nhấp vào đây để mở.


          • 1
            dang7rickroll    4:30 p.m. 19 Tháng 12, 2021

            Bài này không đáng \(400\) đâu, \(200\) là hết .-.

            1 phản hồi