python basic on windows ②

Calculation

Assigning a value to a variable

Variable name = value  ex)sum=10 、 animal='dog'

To check the value stored in the variable, you can check it with print (variable name)!

operator

+: Addition -:subtraction *:multiplication /:division //:小数点以下切り捨ての割り算 %: Surplus (make a surplus) **: Exponentiation

Compound assignment operator

String concatenation

String concatenation

'String A'+'String B' ex) >>>'Tomo' +'Dachi' Friend

Repeated concatenation of strings

'String' * Positive integer   ex)>>>'ab'*4     abababab

Get the length of a string

len ('string')   ex)>>>len('2222222')     7

Recommended Posts

python basic on windows ②
Python on Windows
Install python on windows
Run Openpose on Python (Windows)
Install watchdog on Windows + Python 3.3
Fastest Python installation on Windows
Build Python environment on Windows
Build python environment on windows
I ran python on windows
[Python] [Chainer] [Windows] Install Chainer on Windows
Use Python on Windows (PyCharm)
Python environment construction memo on Windows 10
Anaconda python environment construction on Windows 10
Install python2.7 on windows 32bit environment
Install xgboost (python version) on Windows
Install Python on Windows + pip + virtualenv
Install Pytorch on Blender 2.90 python on Windows
Integrate Modelica and Python on Windows
Installing Kivy-Designer on Windows10 64bit Python3.5
Mecab / Cabocha / KNP on Python + Windows
Install Python development environment on Windows 10
Python CGI file created on Windows
Getting started with Python 3.8 on Windows
Reproduce One-Touch Search on Python 3.7.3. (Windows 10)
RF Python Basic_01
twitter on python3
python windows environment
Python installation (Windows)
Basic Python writing
Build a GVim-based Python development environment on Windows 10 (2) Basic settings
python on mac
Python3 basic grammar
Python on Windbg
RF Python Basic_02
Notes for using OpenCV on Windows10 Python 3.8.3.
Run servo with Python on ESP32 (Windows)
[Kivy] How to install Kivy on Windows [Python]
WSL2-Linux on Windows- (Part 2: Introduce basic tools)
Virtualenv does not work on Python3.5 (Windows)
Creating a python virtual environment on Windows
Use without installing python 2.x on Windows
Python I'm also basic
Install python on WSL
Python basic grammar / algorithm
Python Basic Course (7 Dictionary)
Install and run Python3.5 + NumPy + SciPy on Windows 10
Put MicroPython on Windows to run ESP32 on Python
PyOpenGL setup on Python 3
Basic sorting in Python
Install Python on Pidora.
python windows environment construction
(Windows) Causes and workarounds for UnicodeEncodeError on Python 3
Simply build a Python 3 execution environment on Windows
Python basic course (9 iterations)
Pylint on Windows Atom
Linux (WSL) on Windows
Python installation method Windows
[python] class basic methods
Python Basic Course (11 exceptions)
Install Python on Mac
Install OpenCV 4.0 and Python 3.7 on Windows 10 with Anaconda