A liberal arts engineer tried knocking 100 language processes in Python 00

Although it is a liberal arts, I felt that language processing and machine learning would become the standard from now on, so I started thinking about touching it early. I would be grateful if you could comment in the comments!

The environment is Python 2.7 + macOS Sierra ver 10.12.3

00

Get a string of the characters "stressed" arranged in reverse (from the end to the beginning).

Python:100:0.py


str = "stressed"
str = str[::-1]
print str

This is the basis of string manipulation and is called slice. It's pretty convenient to use

I haven't studied much about slicing, so I'll summarize it at a later date. I want to become more familiar with language specifications. .. ..

Reference: 100 knocks of language processing Chapter 1 in Python

Reference: Language processing 100 knocks 2015 1st day

Recommended Posts

A liberal arts engineer tried knocking 100 language processes in Python 02
A liberal arts engineer tried knocking 100 language processes in Python 01
A liberal arts engineer tried knocking 100 language processes in Python 00
I tried a functional language with Python
I tried playing a typing game in Python
[Memo] I tried a pivot table in Python
I tried adding a Python3 module in C
A story about a liberal arts programming amateur getting a Python 3 engineer certification basic exam
Try to make a Python module in C language
[Beginner] [Python / Django] A fledgling web engineer tried a Django tutorial-Part 7-
[Beginner] [Python / Django] A fledgling web engineer tried a Django tutorial-Part 1-
[Beginner] [Python / Django] A fledgling web engineer tried a Django tutorial-Part 2-
[Beginner] [Python / Django] A fledgling web engineer tried a Django tutorial-Part 0-
[Beginner] [Python / Django] A fledgling web engineer tried a Django tutorial-Part 5-
I tried to implement a pseudo pachislot in Python
[Beginner] [Python / Django] A fledgling web engineer tried a Django tutorial-Part 6-
[Beginner] [Python / Django] A fledgling web engineer tried a Django tutorial-Part 3-
Take a screenshot in Python
Create a dictionary in Python
I tried to implement a one-dimensional cellular automaton in Python
I tried "How to get a method decorated in Python"
Make a bookmarklet in Python
I created a class in Python and tried duck typing
Draw a heart in Python
I tried to implement a misunderstood prisoner's dilemma game in Python
Write a binary search in Python
Hit a command in Python (Windows)
Create a DI Container in Python
100 Language Processing Knock Chapter 1 in Python
Draw a scatterplot matrix in python
I tried knocking 100 image processes (Q1 ~ Q10)
ABC166 in Python A ~ C problem
Create a binary file in Python
Solve ABC036 A ~ C in Python
Start SQLite in a programming language
Write a pie chart in Python
Write a vim plugin in Python
Write a depth-first search in Python
I learned about processes in Python
Python beginner tried 100 language processing knock 2015 (05 ~ 09)
Implementing a simple algorithm in Python 2
Create a Kubernetes Operator in Python
Run a simple algorithm in Python
Draw a CNN diagram in Python
web coder tried excel in Python
Create a random string in Python
I tried Line notification in Python
Schedule a Zoom meeting in Python
When writing a program in Python
Python beginner tried 100 language processing knock 2015 (00 ~ 04)
You will be an engineer in 100 days ――Day 24 ―― Python ―― Basics of Python language 1
I tried to develop a Formatter that outputs Python logs in JSON
You will be an engineer in 100 days ――Day 30 ―― Python ―― Basics of Python language 6
I tried to implement a card game of playing cards in Python
You will be an engineer in 100 days ――Day 25 ―― Python ―― Basics of Python language 2
Generate a first class collection in Python
I tried to implement PLSA in Python
Spiral book in Python! Python with a spiral book! (Chapter 14 ~)
Solve ABC175 A, B, C in Python
A simple HTTP client implemented in Python
Do a non-recursive Euler Tour in Python