Skip to content

Commit ffd0849

Browse files
Update README.md
1 parent da6e3f6 commit ffd0849

File tree

1 file changed

+48
-2
lines changed

1 file changed

+48
-2
lines changed

README.md

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,54 @@
11
## [elements-conversion](https://github.com/DakshCodess/elements-conversion)
2-
## WELCOME TO ELEMENTS-CONVERSION
2+
WELCOME TO ELEMENTS-CONVERSION
33

44

55
## Here We Will Be Learning About Basic Function's Of Python
66

77
# Step 1] What is Python?
8-
# Ans - Python is a highlevel programming language , hence which is also known as Object Oriented Language . It is the most easiest language to learn . It uses simple - basic syntaxe's which we will learn here . [Python](https://en.wikipedia.org/wiki/Python_programming_language)
8+
9+
Ans - Python is a highlevel programming language , hence which is also known as Object Oriented Language . It is the most easiest language to learn . It uses simple - basic syntaxe's which we will learn here . [Python](https://en.wikipedia.org/wiki/Python_programming_language)
10+
11+
# Step 2] Why Should I learn Python First? Why not to try some other Languages first like C/C++ ?
12+
13+
Ans - Hmmm , It's a good question. So basically as You know Python is a very asy language as it uses Intrepreter to run the code . For Example if you put a code ->
14+
15+
a=10
16+
b=20
17+
print(a+b)
18+
19+
Hence Output -> 30
20+
21+
But if you put C or D -> The code will not execute and hence it will show ---------------------------------------------------------------------------
22+
NameError Traceback (most recent call last)
23+
<ipython-input-2-3984b433e022> in <module>
24+
1 a=10
25+
2 b=20
26+
----> 3 print(a+b+c)
27+
28+
NameError: name 'c' is not defined
29+
30+
This is why you should learn Python first , by using simple human language you can easily understand the concept of the language , Where as the language C / C++ contain's Compiler in which a Programmer must have to enter whole code correctly or else the whole programm will not run until and unless it is programmed again with correct statement's and logic .
31+
32+
Example if you put code --->
33+
34+
35+
#include <stdio.h>
36+
int main()
37+
{
38+
// Displays the string inside quotations
39+
printf("C Programming");
40+
return 0;
41+
}
42+
43+
The Output ---> C programming
44+
45+
46+
But if you code it worngly then ----> gcc /tmp/BKVH65M3PR.c -lm
47+
/tmp/BKVH65M3PR.c: In function 'main':
48+
/tmp/BKVH65M3PR.c:6:5: error: expected declaration or statement at end of input
49+
6 | return 0;
50+
| ^~~~~~
51+
52+
why error? becuase you forgot } in the end of the program
53+
54+
So this is why you should learn Python first . These code are taken from [programiz.com](https://www.programiz.com/c-programming)

0 commit comments

Comments
 (0)