@valoro/

operaciones_basicas_1

Python

https://altocodigo.blogspot.com/2018/08/operaciones-con-numeros-en-python.html

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.5591446183338895","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"eD0xNQp5PTMKcHJpbnQoeCwnKycseSwnPScseCt5KQpwcmludCh4LCctJyx5LCc9Jyx4LXkpCnByaW50KHgsJyonLHksJz0nLHgqeSkKcHJpbnQoeCwnLycseSwnPScseC95KQp4LHk9MiwzCnByaW50KHgsJ2VsZXZhZG8gYScseSwnPScseCoqeSkKeD0xMQpwcmludCh4LCdkaXZpc2nDs24gZW50ZXJhIGVudHJlJyx5LCc9Jyx4Ly95KQpwcmludCh4LCdtw7NkdWxvJyx5LCc9Jyx4JXkpCiNvcGVyYWRvcmVzIGzDs2dpY29zCnByaW50KHgsJ2VzIG1heW9yIHF1ZScseSx4PnkpCnByaW50KHgsJ2VzIG1lbm9yIHF1ZScseSx4PHkpCnByaW50KHksJzwnLHgsJzwyMCcseTx4PDIwKQ=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
x=15
y=3
print(x,'+',y,'=',x+y)
print(x,'-',y,'=',x-y)
print(x,'*',y,'=',x*y)
print(x,'/',y,'=',x/y)
x,y=2,3
print(x,'elevado a',y,'=',x**y)
x=11
print(x,'división entera entre',y,'=',x//y)
print(x,'módulo',y,'=',x%y)
#operadores lógicos
print(x,'es mayor que',y,x>y)
print(x,'es menor que',y,x<y)
print(y,'<',x,'<20',y<x<20)