mirror of
https://github.com/Hizenberg469/Python-tutorial.git
synced 2026-04-19 23:12:24 +03:00
first commit
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.venv/*
|
||||||
@@ -7,16 +7,25 @@
|
|||||||
There
|
There
|
||||||
'''
|
'''
|
||||||
|
|
||||||
Formatting String:
|
->Formatting String:
|
||||||
|
|
||||||
for python 3:
|
for python 3:
|
||||||
f'....{<variable-name>}.....{<variable-name}...'
|
f'....{<variable-name>}.....{<variable-name}...'
|
||||||
|
|
||||||
'Hello there {} and {}'.format(name1, name2)
|
'Hello there {} and {}'.format(name1, name2)
|
||||||
|
|
||||||
'Hello there {1} and {0}'.format(name1, name2)
|
'Hello there {1} and {0}'.format(name1, name2)
|
||||||
|
|
||||||
{1} : name2
|
{1} : name2
|
||||||
{0} : name1
|
{0} : name1
|
||||||
|
|
||||||
'Hello there {var1} and {var2}'.format(var1 = value, var2 = value)
|
'Hello there {var1} and {var2}'.format(var1 = value, var2 = value)
|
||||||
|
|
||||||
|
-> Creating virtual environment:
|
||||||
|
|
||||||
|
For creating virtual environment:
|
||||||
|
|
||||||
|
Use:
|
||||||
|
python -m venv <environment-folder-name>
|
||||||
|
source .venv/bin/activate
|
||||||
|
python -m pip install --upgrade pip setuptools wheel
|
||||||
|
|||||||
Reference in New Issue
Block a user