Intro To Python And Operators.
Innomatics Research Labs
Im a innomatics student, this is for innomatics research labs notes (the best institute of hyderabad) once search in google, course = data science and full stack development
Innomatics Research Labs is a pioneer in “Transforming Career and Lives” of individuals in the Digital Space by catering advanced training on IBM Certified Data Science, Python, IBM Certified Predictive Analytics Modeler, Machine Learning, Artificial Intelligence (AI), Full-stack web development, Amazon Web Services (AWS), DevOps, Microsoft Azure, Big data Analytics, Digital Marketing, and Career Launching program for students who are willing to showcase their skills in the competitive job market with valuable credentials, and also can complete courses with a certificate.
intro to jupyter notebook :
jupyter is an incredibly powerful tool for interactive coding and presenting/documenting our projects.
jupyter is an IDE typically used to develop data analysis and data science solutions. Jupyter, in its early days was called IPython(Hence the extension - ipynb) but it was changed to Jupyter to reflect the inclusion of support for other programming languages. It actually provides support for 40+ languages. The name Jupyter is an amalgamation of the major programming languages it supports -
JUlia PYTon E R
debugging in jupyter is easier compared to other ides like pycharm or spyder, as we have cells in jupyter notebook.
jupyter's markdown has the provision to include media like images, video and audio. The features in markdown borrow elements from html(tags).
Markdown :
bold, italic and underlined
text in bold
text in itallic
text is underlined
block qoute
self explainable
> Hi
hyperLink
syntax for hyperlink
[Text to be used as hyperlink]< noSpace >(url
)
Python
I'm new to world of python and Data Science
quick galnce of python
python is an interpreter, high-level multipurpose programming lang.
in python, we use
indentation
as way to define the scope. whereas other langs use '{ < lines of code > } to define the scope.
Python vs R
- python can be scaled up with data, which isn't possible in R
- avaliability of open source libraries that are desgined for specific industry based tasks are more when compared to R.
- when it comes to deep learning, python beats R. Most of the Data Science libraries are developed with python in mind.
- Note:
unlike other languages, in python, at time of variable declaration one doesn't need to be specified what kind of data type we are providing.
in python, same variable can hold different values at different times, this isn't possible in c++ or java.
5.5 <class 'float'>
hi <class 'str'>
single line comment
- a single line comment starts with
#
multiple line comments
- multi line comments are enclosed in triple single qoutes or triple double qoutes(
'''
or"""
)
['False', 'None', 'True', 'and', 'as', 'assert', 'async', 'await', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']
total number of keywords in python are 35
Assigning values
10
10
Arthimatics operators
[+, -, *, /, //, %, ** ]
95367431640625
Comparission operators
Relational operators
[>, <, >=, <=, ==, !=]
- output of relational operators is a
boolean
value {True or False}
values of x, y, z are 10, 11 and 11 respectivly 10 < 11: True 10 > 11: False 10 <= 11: True 10 >= 11: False 10 == 11: False 10 == 11: False 10 != 11: True
Logical operators
[and, or, not]
logical comparission operators
works onboolean
values, and the output is alsoboolean
values of x, y, z are True, False and True respectivly True and False: False True and True: True True or False: True True or True: True not True : False not False : True
Identity operator
is
- identity operator
is
checks if thevalues
and as well thelocation of these values
aresame
- output of an identity operator is a
boolean
True True True True True True True False
Membership operators
[in, not
in]
- Membership operators
in
andnot in
are used to check wether a value/variable is a part of aniterator
,link text
True True False False True True True
Bitwise operators
- bitwise operators can be used on only integers
- bitwise operators work on bit levels
- the given values will be converted into binary and then these operations are performed on their respective bits
Ex ';
1 bitwise and operation (&) 7 bitwise or operation (|) 6 bitwise xor operation (^) -6 bitwise not operation (~) 24 bitwise left shift (<<) 4 bitwise right shift (>>)
Assignment operators
14 12 24 576 288 3 1.5 17 21 16 512 16
mutable vs immutable
5 11531040 10 11531200
[1, 2, 3] 140638009668288 [1, 2, 3, 4] 140638009668288
Comments
Post a Comment