Files
  • main.py
main.py
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)