-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFirstrogram.py
More file actions
116 lines (109 loc) · 2.61 KB
/
Firstrogram.py
File metadata and controls
116 lines (109 loc) · 2.61 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# print("talha" ,"My Age is 30" )
# print("My Hobby is Gardening.")
# print("Hello World")
# print("Muhammad Talha")
# print(23)
# print(34+34)
# print(34*34)
# print(34-34)# difference
# print(34/34)# divide
# print(34%34)#modulo
# print(34**34) #power
# name= "TALHA"
# age= 23
# price= 23.4
# a=7
# b=7
# c= a+b
# print(name)
# print(c)
# print(age)
# print(price)
# print(type(name))
# print(type(age))
# print(type(price))
# age1= 24
# old=False
# d=None
# print(age1)
# print(old)
# print(d)
# print(type(age1))
# print(type(old))
# print(type(d))
# # single line comment
# # ddddddddddddddd
# #relational operater or comparative operater
# a=50
# b=20
# print(a==b)# False
# print(a>b)# True
# print(a>=b)# True
# print(a<b)# False
# print(a<=b)# False
# print(a==b)# False
# print(a==b)# False
# print(a!=b)# True
# # assignment operater
# num=10
# num+= 10 # we can use this shortcut assignment operter. num+ = 10
# # num-= 10 # we can use this shortcut assignment operter. num+ = 10
# # num/= 10
# # num%= 10
# # num**= 10
# print("num=" , num)
# # logical operater
# a=50
# b=30
# print(not(a>b)) # the answer will be false because of not operation
# print(not(a<b))
# # and operater
# val1=True
# val2=True
# print("AND operater:" , val1 and val2)
# print("OR operater:" , a==b or a>=b)
# # Type conversion
# a=2
# b=4.25
# print("a+b :" , a+b) # automatically convert int value into float.
# # type casting
# # a=int("2")
# # b=4.25
# # print("a+b :" , a+b)
# b=9
# b=str(b)
# print(b)
# print(type(b))
# # name=input("Enter Your Name:")
# # print("Welcome " , name)
# #val=input("Enter some Number:")
# #print(type(val) , val) # it will treat all number as string that we will enter eg "25"
# # val=float(input("Enter some Number:")) # for taking result in specific class in integer or float we will se type casting
# # print(type(val) , val)
# # name=input("enter your name")
# # age=int(input("enter your age"))
# # marks=float(input("enter your marks"))
# # print("name =" , name)
# # print("age =" , age)
# # print("marks =" ,marks)
# # write a program to input two number and print their sum?
# # first=int(input("Enter First "))
# # second=int(input("Enter second "))
# # print("sum =" , first + second)
# # side=float(input("enter square side"))
# # print("area =" , side * side)
# a=float(input("Enter First "))
# b=float(input("Enter second "))
# print("Average =" , (a+b)/2)
# sunny = True
# print("Is it sunny today?", sunny)
# a=str(7)
# b="TALHA"
# c=int(7.8)
# print(type(a))
# print(type(b))
# print(type(c))
first_name = "Ali"
last_name = "Khan"
full_name = first_name + " " + last_name
print("Full name:", full_name)