forked from ainugiri/Python_Oct_25
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path003_Input.py
More file actions
38 lines (30 loc) · 1.11 KB
/
Copy path003_Input.py
File metadata and controls
38 lines (30 loc) · 1.11 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
import sys
# name = input("Enter your name: ")
# age = int(input("Enter your age: "))
# print("Hello", name, "you are", age, "years old.")
# # print("Hello %s you are %d years old." %(name, age)) -> C style formatting
# # java : System.out.printf("Hello %s you are %d years old.", name, age);
# print(f"Hello {name} you are {age} years old.") # f-string formatting -> Python 3.6+
# a,b,c = input("Enter 3 values: ").split()
# print(type(a), 'value of a is ', a)
# print(type(b), 'value of b is ', b)
# print(type(c), 'value of c is ', c)
# a,b,c = map(int, input("Enter 3 values: ").split())
# print(type(a), 'value of a is ', a)
# print(type(b), 'value of b is ', b)
# print(type(c), 'value of c is ', c)
# name1, name2, name3 = input("Enter 3 names without space").split()
# print(name1)
# print(name2)
# print(name3)
# name1, name2, name3 = input("Enter 3 names without space").split(',')
# print(name1)
# print(name2)
# print(name3)
# x,y,z = map(int, input().split(','))
# print(x, type(x))
# print(y, type(y))
# print(z, type(z))
names = [input() for _ in range(3)]
fname,mname,lname = names
print(fname, mname, lname)