last update python

This commit is contained in:
Ionel Andrei Cataon
2026-01-29 18:05:15 +02:00
parent 80d368e4c5
commit 2d3f686918
4 changed files with 42 additions and 11 deletions

View File

@@ -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

View File

@@ -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.")
x += 1

View 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.")

View 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