First time python

I started Python today. I don't have much knowledge about the program. I would like to summarize the code I studied today.

** String type ** split (","): Splits itself with a specific string (,). index (","): You can see which character (,) specified by the argument appears first.

** datetime module ** In order to read date, time, datetime type module, it is necessary to read by import. This is common to all modules.

** date type ** Today: kyou = datetime.date.today () Find out the day of the week: kyou.weekday ()

** datetime type ** Now: datetime.datetime.now ()

** List type ** list [-1]: Access the last element append: Append element to the end of the list. insert (a, b): Insert b in place of the subscript a. pop (a): Removed the element with the subscript a. remove (a): Remove by specifying element a. extend (list): Add all elements of list. list [0: 3]: Extracts the elements starting from the 0th to the one before the 3rd. sort (): Sort in ascending order. Alphabetical order for letters (uppercase comes first) reverse (): Reverse the order.

** Dictionary type ** Save the key and value as a pair and use the key to recall the value. The format is country_code = {1: "America", 39: "Italia", 86: "China"} The number is the key and the country is the value. Italia can be retrieved with country_code [39].

Thank you very much!

Recommended Posts

First time python
First time python
First Python 3 ~ First comparison ~
python time measurement
Python (from first time to execution)
First Python ~ Coding 2 ~
See python for the first time
First python [O'REILLY]
MongoDB for the first time in Python
Python environment preparation (venv first time use)
Python: Time Series Analysis
First Python 3rd Edition
Function execution time (Python)
PyQ ~ Python First Steps ~
First Python image processing
[Python] Python / Scikit-learn's first SVM
Python time series question
Output python execution time
Time floor function (Python)
First Python miscellaneous notes
[Python] Chapter 01-01 About Python (First Python)
python get current time
I tried python programming for the first time.
Kaggle for the first time (kaggle ①)
First Fabric (Python deployment tool)
Python execution time measurement memo
What I got into Python for the first time
I tried Python on Mac for the first time.
Python
I tried python on heroku for the first time
First neuron simulation with NEURON + Python
Execution time measurement with Python With
Kaguru for the first time
[Python] Plot time series data
Time synchronization (Windows) with Python
First simple regression analysis in Python
First Python 3 ~ The beginning of repetition ~
Python: Time Series Analysis: Preprocessing Time Series Data
Web scraping with Python First step
First Python 3 ~ Extra: Numerical Random Fantasy ~
Measure function execution time in Python
[GUI with Python] PyQt5-The first step-
Prepare your first Python development environment
python sql statement extracted by time
[For self-learning] Go2 for the first time
Time series plot started ~ python edition ~
C / C ++ programmer challenges Python (first step)
Start Django for the first time
Code tests around time in Python
The first step in Python Matplotlib
python> Processing time measurement> time.time () --start_time
Differences C # engineers felt when learning python for the first time
kafka python
Generate a first class collection in Python
Python Date / Time Library Reverse Lookup Reference
Python basics ⑤
python + lottery 6
Python Summary
Built-in python
Python comprehension
Python technique