forked from Sazzadul-Eanan/Basic_python_learning
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprogram-6.py
More file actions
24 lines (20 loc) · 886 Bytes
/
Copy pathprogram-6.py
File metadata and controls
24 lines (20 loc) · 886 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
# Use quotation mark (" ") to get all the numerical values and characters ( alphabet )as strings-
''' # Putting 3 single quotation marks in the top and bottom line is another way of creating comments and make some code inactive for a while
name = "Robin"
age = "32"
gpa = "3.96"
print("Student's Information")
print("---------------------")
print("Name : " +name)
print("Age : " +age)
print("Gpa : " +gpa)
''' # Putting 3 single quotation marks in the top and bottom line is another way of creating comments and make some code inactive for a while
# Using 'input' function for taking the input from user -
name = input("Enter student's name - ")
age = input("Enter student's age - ")
gpa = input("Enter student's gpa - ")
print("Student's Information")
print("---------------------")
print("Name : " +name)
print("Age : " +age)
print("Gpa : " +gpa)