p34.py

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