lesson3_17_18

# -*- coding: utf-8 -*-
"""
Created on Mon Mar 12 17:32:40 2018

@author: stkarlos
"""

x = raw_input('dose timi: ')
y = raw_input('dose timi ek neou:')
print type(x),'   ', type(y)
print x + y

#########################################
print
print
x = float(raw_input('dose 1o arithmo: '))
y = raw_input('dose 2o arithmo: ')
y = float(y)
print 'type of x is ', type(x)
print x, y, x + y

#########################################
print
print
x = float(raw_input('dose 1o arithmo: '))
y = float(raw_input('dose 2o arithmo: '))
x_int = int(x)
y_int = int(y)
x_float = x - x_int
y_float = y - y_int

print 'akeraio meros x kai y: ', x_int + y_int
print 'dekadiko meros x kai y: ', x_float + y_float

#print 3 / 5.
#print 3. / 5
#print 3.0 / 5.
#a = 3
#b = 5
#
#print float(a) / b

 

Posted in Uncategorized