Académique Documents
Professionnel Documents
Culture Documents
python
• Jupyter
• Google Colab
• Spyder
• Pycharm
• Visual Studio Code
+ (addition)
- (soustraction)
>>x=45 >>x=45
>>a=x+2 >>s=x-2
>>a >>s
47 43
>>x=2 >>x=‘toto’
>>type(x) >>type(x)
int str
>>x=‘345’
>>x=3 >>x=3 >>int(x)
>>str(x) >>float(x) >>float(x)
‘3’ 3.0 345
345.0
>>print(‘’hello’’)
>>print(‘’hello’’, end=‘’
>>print(‘’hello’’) >>print(‘’Joe’’)
Joe ’’)
hello Hello
Hello Joe
Joe