forked from cbreddy69/python-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsandbox-sindhi.py
More file actions
74 lines (45 loc) · 786 Bytes
/
sandbox-sindhi.py
File metadata and controls
74 lines (45 loc) · 786 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# -*- coding: utf-8 -*-
"""
Created on Sun Oct 21 18:40:58 2018
@author: Raghu Prasad
"""
print("I am learning python")
#Single line comment
'''
Multi line comment 1
Multi line comment 2
'''
#Variables
name ='raghu'
num1 = 10
num2 = 20
result = num1 + num2
print(result)
print (type(name))
print (type(num1))
print (id(name))
num3 = 10
print('id num1 ',id(num1))
print(' id num3 ',id(num3))
weight = 72.5
print('weight ', weight)
print('type of weight ', type(weight))
isActive = True
print(' Type of boolean ', type(isActive))
# Operators
num1 = 10
num2 = 20
#Addition
print(num1 +num2)
#Subtraction
print(num2-num1)
# Division
print(num2/num1)
# Modulus
print(num2%2)
#Division //
print(7/2)
print(7//2)
print(num1>num2)
name = 'raghu'
print(len(name))