-
Notifications
You must be signed in to change notification settings - Fork 0
/
Introduction_in_Python.py
27 lines (24 loc) · 1 KB
/
Introduction_in_Python.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File: Introduction_in_Python.py
# Description: Mathematical operations in Python
# Environment: Spyder IDE in Anaconda environment
#
# MIT License
# Copyright (c) 2018 Valentyn N Sichkar
# github.com/sichkar-valentyn
#
# Reference to:
# [1] Valentyn N Sichkar. Mathematical operations in Python // GitHub platform [Electronic resource]. URL: https://github.com/sichkar-valentyn/Introduction_in_Python (date of access: XX.XX.XXXX)
"""
Created on Sun Jan 07 19:46:45 2018
@author: valentyn
"""
print("This is a Great Python Program")
print("Hello there, programmer!")
print("We are going to calculate some basic stuff now:")
print("10/3 = ", 10/3, " - this is division")
print("10//3 = ", 10//3, " - this is integer division")
print("10%3 = ", 10%3, " - this is remainder of division")
print("10**3 = ", 10**3, " - here we put 10 into the power of 3")
print("10*3 + 1 = ", 10*3 +1, " - because first we do multiplication")
print("10*(3 + 1) = ", 10*(3 + 1), " - because first we do calculation into the brackets")
input()