🐍 Pythons learning
PYTHON • DATA SCIENCE • AI

Master Python, Data Science & Machine Learning

#Python #Pandas #NumPy #MachineLearning #Projects

Saturday, August 22, 2020

python 3 get user input-raw_input ( ) function input ( prompt ) function

 python 3 get user input

Hello everyone, In this article we will see What is difference between raw_input ( ) function,input ( prompt ) function?, How to get different input from keyboard in python language ?
So let's start:
python 3 get user input-raw_input ( ) function input ( prompt ) function
 python 3 get user input-raw_input ( ) function input ( prompt ) function

Python 3 version has a built-in function input() to accept user input from keyboard.
Python  language provides  two inbuilt function to read the input or data  from the keyboard.
  • raw_input ( prompt ) function
  • input ( prompt ) function

What is difference between raw_input ( ) function input ( prompt ) function?

Thursday, August 20, 2020

How to remove duplicates from list in python 3

How to remove duplicates from list in python 3 :

Hello friends, In this article we will see How to remove duplicates items or elements from the list in python so Let's start :
How to remove duplicates from list in python 3
How to remove duplicates from list in python 3

There are different way to remove duplicates from list :
  1. Method 1 : Using list comprehension method
  2. Method 2 : Using list comprehension + enumerate() method
  3. Method 3 : Using set() method
  4. Method 4 : Naive method
  5. Method 5 : Using collections.OrderedDict.fromkeys() method

Method 1 : Using list comprehension method

This method has working similar to the Naive method , but small difference is it just a liner shorthand of longer methods done with the help of lists comprehension method.

Tuesday, August 18, 2020

Modulo Operator python-modulus in python

Modulo Operator python-modulus in python

Welcome everyone, Today we will see Modulo Operator python,Modulo Operator python for negative number,How does a modulo operator work?,What is the use of modulo operator?,How do you find modulo?,What is the symbol of modulus operator?
so let's start:
Modulo Operator python
Modulo Operator python

Modulo operator is show by the percent sign (%).
The syntax for Modulo Operator python is :

numx % numy
output:
For example:
11 % 2
output:
1
If any case the divisor result is equal to zero then output show ZeroDivisionError:
11 % 0
output:
ZeroDivisionError: modulo by zero.
The modulo operator also work on floating numbers as arguments:
for example:
4.8 % 1.2
Copy
0.0
Remember % character represents the interpolation operator.(formatting strings)
Examples
modulo operator is used for different purpose like One of the most common use is to check whether a number is even or odd.
If a given number divided by 2 and has no remainder, then this number is even number. Otherwise it is odd.

Sunday, August 16, 2020

Best python tutorials point ebook

 Best python tutorials point ebook :

Hello everyone, congrats!! python tutorials point publish Best python tutorials ebook written by Mr. Pagar sachin so Let's start to see It's specification:
Become a Python Programming Expert With Ease!
Best python tutorials point ebook
Best python tutorials point ebook

click on BUY THIS EBOOK

Finally what you will learn after Buy this E-book (python tutorials point):

 

Friday, August 14, 2020

Learn different python terminologies

Learn Different python terminologies :

Welcome everyone, Today we will learn different python terminologies. Basically you must need to know which is basics python terminologies so Let's start see this :
Learn different python terminologies
Learn different python terminologies

List of python terminologies :

  • Mutable
  • Nested loop
  • Object 
  • Object oriented
  • Parameter
  • Methods
  • Module
  • MRO
  • Lambda
  • List
  • List comprehension
  • Literal
  • List length
  • Loader 
  • Loop

explain advantages and disadvantages in machine learning

Advantages and disadvantages of Machine Learning :

Welcome everyone, In this article we will learn which is advantages and disadvantages of Machine Learning ? First, we will talk about the Advantages of Machine Learning. so Let’s start:
explain advantages and disadvantages in machine learning
advantages and disadvantages in machine learning


Advantages of Machine Learning

  • Efficient Handling of Data
  • Best for Education and Online Shopping
  • Continuous Improvement
  • Automation for everything
  • Automation of Everything
  • Wide Range of Applications
  • Trends and patterns identification
  • Scope of Improvement

Monday, August 10, 2020

what are python identifiers with example

what are python identifiers with example : 

An identifier is a simple concept which is used to identify entities. ( i.e. class, variables,  functions,module or other object ) Identifier used to differentiate one entity from another entity. An identifier starts with an underscore (_), letter A to Z or small letter a to z or  simply follow by zero or more letter and digits (0 to 9).

Python identifier simple example :

what are python identifiers
what are python identifiers

In the following example we have to used three variables. 
The name of the variables
  •  rollno.,
  •  _sachin
  • and sachin_samprada are the identifiers.
# Basic examples on identifiers

rollno = 1
print(rollno)

_sachin = 5
print(_x)

sachin_samprada = 143
print(sachin_samprada)

Friday, August 7, 2020

comparison python vs r vs sas vs spss

python  vs r vs sas vs spss :

Welcome everyone, Today we will see comparison between  r vs python vs sas vs spss . So Let's start :
what is Python ?
python  vs r vs sas vs spss
  python  vs r vs sas vs spss

1. python is best languages when learning to code :
If you are beginner to learn coding then mostly Python is your language of choice because It is one of the easy programming language to learn (it read and write like to plain English)

2. Python is heavily used in the IOT sector :
Most popular company use python algorithms platform for there services.

Like
  • Google
  • Youtube
  • Quora 
  • amazon etc. 
Advantages :
Powerful, fully-functional programming language
  1.  Latest availability of library Data science Learning and Machine Learning method
  2. Very easy to automate through scripts
  3. Extremely smart community support 
  4. Visualizations algorithms are easy to create
  5. Professional IDE environments are available
  6. object-oriented, functional and structured concepts
  7. A large number of stable package available
  8. Readable and clean syntax 

Tuesday, August 4, 2020

python tutorials point

python tutorials point :

Introduction :
Welcome everyone in our community python tutorials point . This post is related to soft overview about your Education services. I am Mr.sachin pagar Founder of python tutorials point.

Python Tutorials point provided the following services to students:
  1. python tutorials point online course
  2. python tutorials point Data Science
  3. python tutorials point Machine Learning
  4. python tutorials point Exercise and Solution
  5. python tutorials point python Trending
So Let's see one by one in detailed:

#1 python tutorials point online course :

In today every one students must need to learn programming languages including Information Telecommunication sector, Computer science, Electronics Telecommunication. Python is Top most popular programming language between them(i.e. java, c,c++,R etc.)
According to student needs we provide free python tutorials point online course.
python tutorials point
python tutorials point

Monday, August 3, 2020

Inheritance in python tutorials point

Inheritance in python tutorials point :

Welcome everyone, today we will learn what is inheritance in python tutorials point. Inheritance is a very powerful feature in oop. It is represents real-world relationship and support transitivity.
Inheritance refers to defined a new class with no modification or small change to an existing class. The new class in inheritance is called derived class and the one from main class which called the base class.

Type of Inheritance in python :

Inheritance in python tutorials point
Inheritance in python tutorials point

Inheritance is basically categorized into 5 types −
  1. Single
  2. Multiple
  3. Hierarchical
  4. Multi-level
  5. Hybrid
 In inheritance we access the feature of other class without making the object of the parents class.

Python Inheritance Syntax

class BaseClass:
  # (write the Body of base class)
class DerivedClass(BaseClass):
  # (write the Body of derived class)

Above code shows the syntax for python inheritance
A main class can inherit multiples class by adding of them inside the bracket. 

check the following syntax.
Syntax
class derive-class(<main class 1>, <main class 2>,<main class 3> ..... <main class n>):  
    <class -inside>  


Sunday, August 2, 2020

Event handling in python tutorials point

Event handling in python tutorials point


Event handlers is used for change device configuration,restart crashed service.  Event handlers are like as application which is also based on the results of service checks in Monitors. In this article we will see in detailed event handling in python tutorials point .

What is event handler in Python tutorials point?


Event handling class in python, which manage callbacks sender to be executed. It is used as attribute in events-aware class object in python but it does not kept as separate instance.

Event handling decides what should exactly happen if an any one event occur.This process have the code which is called as event handler. you know that Listener python is responsible for generating response to the event during this mechanism hence it is also known as event handler.

Most important function in event handling :

Event handling in python tutorials point
Event handling in python tutorials point
  1. callbacks
  2. sender
  3. add(callback : Callable)
  4. remove(callback : Callable)
  5. __call__(*args) → [ ... ]

Saturday, August 1, 2020

How to use counter in python 3-How to accessing-Arithmetic

How to use counter in python 3-How to accessing-Arithmetic :

Welcome everyone, Today we will see what is counter in python-How to accessing-Arithmetic count. so let's start:

What is Python Counter?

Python counter class is subclass of dictionary and it is a part of collection modules. we know that  python counter is like as container which select track to how many times equivalent values are added.python counter count all positive, zero or negative integer value. 
How to use  counter in python 3-How to accessing-Arithmetic
How to use  counter in python 3-How to accessing-Arithmetic

how to make a counter in python and How to Initializing :

python Counter support three forms of initialization:
  • sequence of item
  • dictionary containing key
  • counts, or with using keyword argument mapping string names to count.
import collections
print (collections.Counter(['x', 'y', 'z', 'x', 'x', 'y']))
print (collections.Counter({'y': 2, 'x': 3, 'z':1}))
print(collections.Counter(y=2, x=3, z=1))
The output shows all three form of initialization are the same -
Counter({'x': 3, 'y': 2, 'z': 1})
Counter({'x': 3, 'y': 2, 'z': 1})
Counter({'x': 3, 'y': 2, 'z': 1})
In the next example we see
  • To create an empty counter
  • pass the counter with no argument 
  • populate it via the update method.
import collections
sach = collections.Counter()
print('Initial: ', sach)
sach.update('loveloo')
print('Sequence: ', sach)
sach.update({'l': 3, 'o':2})
print('Dict: ', sach)

Output

Initial: Counter()
Sequence: Counter({'o': 3, 'l': 2, 'v': 1, 'e': 1})
Dict: Counter({'l': 5, 'o': 5, 'v': 1, 'e': 1})

how to add a counter in python  and How to Accessing Count

following way to accessing it.
import collections
sach = collections.Counter('lovelloo')
for letter in 'loveyou':
   print('%s : %d' %(letter, sach[letter]))

Output

l : 3
o : 3
v : 1
e : 1
y : 0
u : 0

Friday, July 31, 2020

17 interesting facts about python language

17 interesting facts about python language

There  are different  interesting facts about python language :
#1  Big branded Companies Using Python language
#2  Different Flavors in Python
#3  People prefer Python language over French etc.
All this interesting fact we will see one by one. So let's start:
17 interesting facts about python language
17 interesting facts about python language


Big branded Companies Using Python language

There are Many big branded companies use python for their services.
 List shows Some of these branded companies:
  1. Netflix
  2. Expedia
  3. Reddit
  4. Quora
  5. MIT
  6. Disqus
  7. Hike
  8. Spotify
  9. Udemy
  10. Facebook
  11. Shutterstock
  12. Uber
  13. NASA
  14. Google
  15. Nokia
  16. IBM
  17. Mozilla
  18. Dropbox
  19. Pinterest
  20. Youtube
  21. Yahoo! Maps
  22. Walt Disney Feature Animation
  23. Amazon
  24. Mozilla
  25. Dropbox
  26. Pinterest
  27. Youtube

#2  Different Flavors in Python

  1. RubyPython
  2. PyPy
  3. CPython
  4. IronPython
  5. Jython
  6. Brython
  7. MicroPython

#3  People prefer Python language over French :

This is One of my favorite facts about Python programming language.In 2014 UK conduct the survey about Python language according  this report In primary, secondary schools Python language  most popular language in french and UK.Out of 100, 60 parents want to their children to learn Python. 

 #4 Why it is called as 'Python' 

This fourth interesting fact about python language. Why the exact name 'Python' and not any other kind of name choose? you know 


#5 Remember Python does not required compiler :

We know that Python code is stored in the form of a .pyc(extension) byte file, and then which is executed by an virtual machine like browser. This browser/machine act as a run-time engine for Python language. python is 

#6 Python is an open source language

Python community is an open source language

#7 With the help of list change the sequence :

for example:
listnum= [11,22,33,44,55,66,77]
listnum[: :-1]
output:
[77,66,55,44,33,22,11]

#8 Python concatenate string literals and separated by a space

If you type string literals and separated by a space, then Python concatenate them.
 For example: ‘BREAK’ ‘UP’ becomes ‘BREAKUP’
‘BREAK’ ‘UP’
output:
‘BREAKUP’

#9 it's possible to compaire two or more value

For example:
6<7<8<9
6<7>6.5

#10 Python not use the braces to delimit code

Like to C, C++ and Java Python not use the braces to delimit code. 
For example:
from_future_import braces
output:
SyntaxError: not a chance

#11 function can return number of value as a tuple

In Python, a
For example:
def func() :
    return 06, 'sachin',85
roll, name, score=func ()
roll, name, score
(06, 'sachin',85)
name
'sachin'
**This is not possible in java, c, c++ like language.

#12 assign same value to different string

for example:
a,b= 3,4
a,b=x,z
prinr(x,z)
output:
3,4

#13 The Zen of Python poem

#14 Antigravity

Just type in import antigravity, it opens this library

#15 if else statement in python

For example:
for i in range (3):
    if i==8:
              print('love u')
else:
              print('hate u')


get the value of the last expression

To get the value of the last expression, by use an _ sign
for example:
3*6-3
15
5*_
output: 75

#17  Pythons influenced JavaScript.

Some FAQ about python

Interesting things about python ( for that see all the 17 facts)

Interesting facts about coding( we covered different coding facts like if else statement)

Tags: 17 interesting facts about python language,Interesting things about python,Interesting facts about coding
If you like this post then please comment and share this post any doubt then also comment below please and if you want to learn python course for free then click on
BEST OF LUCK!!

Tuesday, July 28, 2020

tutorials point online compiler python

tutorials point online compiler python

Welcome everyone, if you want to compile your program in super fast compiler then click on below button.

START COMPILE YOUR PROGRAM IN FASTER WAY.
  

If you want to learn python course for free then click on python tutorials point.

What is an Online Compiler?

For various programming languages like C, C++, python and java required to compile program in every time so some online compiler is available for that.
Python Online compiler are the small tool allow to the user to compile source codes and execute them through online way. It mostly totally depend on you choice or your requirement. For beginner, it is good to option to unconventional ranged facility providing to compiler.
There are expert-level programming may be charged but few compiler affording free coding for entry- base level user. tutorials point online compiler python is one of the most popular and tested website which support various programming language in python.

What is Python Online Compiler

tutorials point online compiler python
tutorials point online compiler python
Most of the programming language are based on the compiler or interpreter like java,python ,matlab etc. hence, programmer may need to entail a compilers to implement and examine to their code.
So today we are going to see various compiler and interpreters, in this section, which are very helpful in editing and executing the code for python.

Friday, July 24, 2020

python list append multiple times

python list append multiple times :

Hello everyone, Today we are going to see How python list append multiple times? so Let's start:
 If you want to append an item to a list in multiple times, for effectively doing this:
python list append multiple times
python list append multiple times

For Example:
METHOD #01
list = []
xval = 0
for i in range(100):
list.append(xval)
METHOD #02)
For Different data types:
list = [0] * 20
# [0, 0, 0, 0, 0, ...] It's get result all zeros up to 20 times
Similarly
list = ['pythonslearning'] * 100
# ['pythonslearning', 'pythonslearning', 'pythonslearning', 'pythonslearning', ...]
METHOD #03)

list = [{} for x in range(20)]

In the above method the second one is best method for constant values, like as int or string. but why? the answer is when we use the syntax like <list>*<number>only a shallow copy is does and if we use something like as syntax [{}]*100 then it end up with 100 references to the same dictionary and hence change one of them would change them all. and the result is int and string are immutable.
You can use the extend() methods of that list If you want to add to an existing lists. 
Method #01) list.extend()
Method #02)  generator expression:
#l.extend(generate_value() for _ in range(n))
This will add a value n times. Note that this will evaluate generate_value() each time, side-stepping issues with mutable values that other answers may have
>>> [[5]] * 4
[[5], [5], [5], [5]
>>> _[0].append(1)
[[5, 5], [5, 5], [5, 5], [5, 5], [5, 5]]
>>> _
>>> [[5] for _ in range(5)]
[[5], [5], [5], [5], [5]]
[[5, 5], [5], [5], [5], [5]]
>>> _[0].append(1)
>>> _
When using the First method like multiplication method,we end up with a lists of n reference to the same lists.
When using second method like a generator expressions or lists comprehension,for this method a new lists is created for each sub-item, so each item is a different value in every time. 

JSON Module in Python: Parsing and Writing JSON Data

The json module in Python allows you to encode and decode JSON (JavaScript Object Notation) data. It provides built-in methods for convertin...