Skip to content

Commit 913f769

Browse files
authored
Add files via upload
1 parent 9546b12 commit 913f769

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

basic programming.py

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)] on win32
2+
Type "help", "copyright", "credits" or "license()" for more information.
3+
>>> print("hello")
4+
hello
5+
>>> print("i am using python")
6+
i am using python
7+
>>> print("it's easy!get started")
8+
it's easy!get started
9+
>>> #add two number
10+
>>> a=2
11+
>>> b=3
12+
>>> c=a+b
13+
>>> print(c)
14+
5
15+
>>> c
16+
5
17+
>>> a=total123
18+
Traceback (most recent call last):
19+
File "<pyshell#10>", line 1, in <module>
20+
a=total123
21+
NameError: name 'total123' is not defined
22+
>>> a="total23"
23+
>>> print(a)
24+
total23
25+
>>> a="123total"
26+
>>> print(a)
27+
123total
28+
>>> #dollar symbol is not allowed
29+
>>> cash=10
30+
>>> ca$h=10
31+
SyntaxError: invalid syntax
32+
>>> #inbuilt function
33+
>>> #type()use

0 commit comments

Comments
 (0)