I've always thought that I don't have many opportunities to write code, so I will write the code while solving the problem with AtCorder
I decided to post it on Qiita to make it a habit. I will write about knowledge that I did not know in the article
With python, you can easily access one character in a string In the example below, the first and last characters are output from the string.
sample1.py
str = 'abcdef'
print(str[0]) #a
print(str[-1]) #f
I'm going to try AtCoder Grand Contest 043.
Recommended Posts