-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstatment.py
More file actions
42 lines (41 loc) · 973 Bytes
/
statment.py
File metadata and controls
42 lines (41 loc) · 973 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
Python 3.11.3 (tags/v3.11.3:f3909b8, Apr 4 2023, 23:49:59) [MSC v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> X=10
>>> print(x)
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
print(x)
NameError: name 'x' is not defined. Did you mean: 'X'?
>>> print(X)
10
>>> name = input("Enter your name: ")
Enter your name: Rohit
>>> print(name)
Rohit
>>> name = input("Enter your address: ")
Enter your address: pune
>>> print(name)
pune
>>> name="raj"
>>> name = input(" ")
>>> """ bjkhjfjkffbg"""
' bjkhjfjkffbg'
>>> """
... nnbbnmm
... bnmm
... jbjj"""
'\nnnbbnmm\nbnmm\njbjj'
>>> #,,,m,,,m..
>>> #vbb
>>> #
>>> #fgfhfc
>>> x=10
>>> if x> 20:
... print("
...
SyntaxError: incomplete input
>>> user_input = input("Enter a number: ")
...
Enter a number: 21
>>> user_input = input("Enter a number: ")
...