last update python
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
cd ~ && \
|
||||
mkdir venv && \
|
||||
cd venv && \
|
||||
sudo apt install python3-venv -y && \
|
||||
python3 -m venv it_school_python && \
|
||||
source ~/venv/it_school_python/bin/activate
|
||||
@@ -3,16 +3,7 @@
|
||||
x = 0
|
||||
while x < 10:
|
||||
if x == 5:
|
||||
print("Am ajuns la 5, iesim din bucla.")
|
||||
print("Am ajuns la valoarea 5, iesim din bucla.")
|
||||
break
|
||||
print("Valoarea lui x este:", x)
|
||||
x += 1
|
||||
|
||||
y = 0
|
||||
while y < 10:
|
||||
y += 1
|
||||
if y == 2:
|
||||
print("Sărim peste valoarea 2.")
|
||||
continue
|
||||
print("Valoarea lui y este:", y)
|
||||
print("Am iesit din bucla.")
|
||||
18
Python_module_1/python_009.py
Normal file
18
Python_module_1/python_009.py
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/home/andrei/it_school/bin/python3
|
||||
|
||||
x = 0
|
||||
while x < 10:
|
||||
if x == 5:
|
||||
print("Am ajuns la 5, iesim din bucla.")
|
||||
break
|
||||
print("Valoarea lui x este:", x)
|
||||
x += 1
|
||||
|
||||
y = 0
|
||||
while y < 10:
|
||||
y += 1
|
||||
if y == 2:
|
||||
print("Sărim peste valoarea 2.")
|
||||
continue
|
||||
print("Valoarea lui y este:", y)
|
||||
print("Am iesit din bucla.")
|
||||
16
docker_compose00/docker-compose.yml
Normal file
16
docker_compose00/docker-compose.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
services:
|
||||
db:
|
||||
image: mysql:8.4.4
|
||||
container_name: mysql8_db
|
||||
restart: always
|
||||
command: --mysql_native_password=on
|
||||
environment:
|
||||
- TZ: "Europe/Bucharest"
|
||||
- MYSQL_ROOT_PASSWORD: 5tUd3nT
|
||||
db_editor:
|
||||
image: phpmyadmin
|
||||
container_name: phpmyadmin
|
||||
restart: always
|
||||
environment:
|
||||
- TZ: "Europe/Bucharest"
|
||||
- PMA_HOST: db
|
||||
Reference in New Issue
Block a user