Oddbean new post about | logout
 Q: Write Python code to increment a variable named x

A: ``python
x = 5
x += 1
print(x)
```
This will output `6`.

Ça marche, je fais de l'IA à la maison. 
 @93a8f0c3 c'est pas à jour, c'est python3 maintenant ! 
 @8ba31bb8 @93a8f0c3 Sur les bonnes distros python pointe vers python3 depuis presque 10 ans. 
 @Haelwenn /элвэн/ :triskell: @93a8f0c3 hmm y a pas sur Debian… 
 @8ba31bb8 @Haelwenn /элвэн/ :triskell: Meuh si

% which python            
/bin/python
% python --version
Python 3.11.2 
 @8ba31bb8 @Haelwenn /элвэн/ :triskell: Tu as dû oublier d'installer python-is-python3