Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

תרגיל 1

print "\nnumber 1:"
print "\n"
num1 = 100

num1 = num1 / 20
num1 = num1 + 100
num1 = num1 - 25
num1 = num1 * 2
num1 = num1 ** 2

print num1

print "\nnumber 2:"

num2 = 10
print "\n"
print '%s \n%s' % (num1, num2) 
print '\n%s %s' % (num1, num2) 
print "\n" 
print num1 + num2
print '\n' 
print num1 * num2

print "\nnumber 3:"

print "\n" 
print num1 + num2, "is the summary of num1 and num2"
print '\n' 
print num1 * num2, "is the product of num1 and num2"




    









Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.