p34.py

mail@pastecode.io avatar
unknown
plain_text
a year ago
174 B
5
Indexable
def fl(a = input("Input something: ")):
    if len(a) > 0:
        firstChar = a[0]
        print(f"First character : {firstChar}")
    else:
        print("none")
fl()