Epython Lab
6.45K subscribers
659 photos
31 videos
104 files
1.22K links
Welcome to Epython Lab, where you can get resources to learn, one-on-one trainings on machine learning, business analytics, and Python, and solutions for business problems.

Buy ads: https://telega.io/c/epythonlab
Download Telegram
Python_for_Beginners_An_Essential_Guide_to_Easy_Learning_with_Basic.epub
2.3 MB
Python for Beginners : An Essential Guide to Easy Learning with Basic Exercises : Python programming Crash Course for Data Analysis and for Beginner Hackers
Walsh, Conley (2020)

@epythonlab #pythonbooks
#Python #List

A list is a common Python datatype that is ordered and changeable. It allows duplicate values.

Creating a list is as simple as putting different comma-separated values between square brackets:
animals = ["Cow", "Ox", "Got"]

A python list is very important especially for data science and Machine learning because the data of datasets are organized in a list form. We can further investigate the future predictions based on the list of data.
👍1
#Python #Tools
Most usefully Python tools
#web Developers
-Django
-Bottle
-CherryPy
-Pyramid
-TurboGears
#Game Developers
-Pygame
-Pyglet
-PyOpenGl
-Arcade
-Panda3D
#Gui Developers
-Kivy
-Tkinter
-WxPython
-PyGUI
-PySide
#Machine Learning
-TensorFlow
-keras
-Theano
-Scikit-learn
-PyTorch
#Data Science
-NumPy
-Pandas
-SciPy
-IPython
-Plotly
#Image processing
-Opencv
-Mahotas
-SimpleTK
-Pillow
-Scikit-Image
#Web scraping
-Requests
-Beautiful Soup
-Selenium
-Lxml
-ScraPy
#Authomation Testing
-Splinter
-RoBot
-Behave
-PyUnit
-Pytest
🎲 Quiz 'Python'
This quiz is introducing the basic python for beginners.
🖊 6 questions · 3 min
You can share your questions, thoughts and experiences. You can also answer for questions asked by others. @pyDiscussion
Epython Lab via @QuizBot
🎲 Quiz 'Python' This quiz is introducing the basic python for beginners. 🖊 6 questions · 3 min
Top 5. Still you have time to wine.


🥇 @Reset19 – 5 (53.1 sec)
🥈 @being_me1 – 5 (1 min 33 sec)
🥉 @PrisWen – 5 (1 min 42 sec)
4. ㅤㅤㅤㅤ ㅤ – 5 (1 min 45 sec)
#TIP #help_function

Python has many more functions, and defining your own functions is a big part of python programming.

The help() function is possibly the most important Python function you can learn. If you can remember how to use help(), you hold the key to understanding most other function.

Here is an example:

help(round)
#Question_by_user
Q: "Can somebody help me in putting list in CSV file in Python"

#Solution

# first create a list with items you would like to save a csv file
big_list = [{'name': 'Fredrick Stein', 'userid': 6712359021, 'is_admin': False},
{'name': 'Wiltmore Denis', 'userid': 2525942, 'is_admin': False},
{'name': 'Greely Plonk', 'userid': 15890235, 'is_admin': False},
{'name': 'Dendris Stulo', 'userid': 572189563, 'is_admin': True}]
# import csv module
import csv

# create afile with open function with a temporary file name output.csv
with open('output.csv', 'w') as output_csv:
# create a list of headers
fields = ['name', 'userid', 'is_admin']
# write the output using dictionary writter function
output_writer = csv.DictWriter(output_csv, fieldnames=fields)
# write the headers
output_writer.writeheader()
# create for loop which iterate each list and write a row
for item in big_list:
output_writer.writerow(item)
👍3
One more #question_by_another_user
#Q: "What is the d/nce b/n Machine learning and Data science ...?"
#CODE_CHALLENGE #PYTHON_LIST #LOOPS #FUNCTIONS

1. Write a function called delete_starting_evens() that has a parameter named lst.

The function should remove elements from the front of lst until the front of the list is not even. The function should then return lst.

For example if lst started as [4, 8, 10, 11, 12, 15], then delete_starting_evens(lst) should return [11, 12, 15].

Make sure your function works even if every element in the list is even!

POST YOUR SOLUTION @Pydiscussion
NEURAL NETWORK
A neural network is a network or circuit of neurons,or in a modern sense, an artificial neural network, composed of artificial neurons or nodes. This a neural network is either a biological neutral network, mafe up of real biological neurons or an artificial neural network for solving Artificial Intelligence problems. The connections of the biological neurons are modelled as weight. A positive weight reflects and extraordinary collection, while negative values means inhibitory connections. All inputs are modified by weight and summed. This activity is referred to as a linear combination. Finally and activation function control ls the Amplitude of the output. For example and acceptable range of output is usually between 0 and 1, or it could be -1 and 1.
Why we choice Python ? Well, Python is the library with the most complete set of Neural Network library . I will use Keras.
Keras is a higher-level abstraction for the popular neural network library, Tensorflow. Because of the high level of abstraction, you don’t have to build a low-level Linear Algorithm and Multivariate Calculus by yourself.
What does a neuron do ?
First, it adds up the value of every neurons from the previous column it is connected to.there are 3 inputs (x1, x2, x3) coming to the neuron, so 3 neurons of the previous column are connected to our neuron.
This value is multiplied, before being added, by another variable called “weight” (w1, w2, w3) which determines the connection between the two neurons. Each connection of neurons has its own weight, and those are the only values that will be modified during the learning process.
Moreover, a bias value may be added to the total value calculated. It is not a value coming from a specific neuron and is chosen before the learning phase, but can be useful for the network.

After all those summations, the neuron finally applies a function called “activation function” to the obtained value.
Take all values from connected neurons multiplied by their respective weight, add them, and apply an activation function. Then, the neuron is ready to send its new value to other neurons.

After every neurons of a column did it, the neural network passes to the next column. In the end, the last values obtained should be one usable to determine the desired output.

Now that we understand what a neuron does, we could possibly create any network we want. 
Epython Lab pinned «NEURAL NETWORK A neural network is a network or circuit of neurons,or in a modern sense, an artificial neural network, composed of artificial neurons or nodes. This a neural network is either a biological neutral network, mafe up of real biological neurons…»
Epython Lab
#CODE_CHALLENGE #PYTHON_LIST #LOOPS #FUNCTIONS 1. Write a function called delete_starting_evens() that has a parameter named lst. The function should remove elements from the front of lst until the front of the list is not even. The function should then…
#SOLUTION

Many of you are tried your best solution for the challenge. We thank you so much for your contribution.
We also thanks to someone who shared the info to others.
based on the instruction this is the best solution for the challenge

#Write your function here
def delete_starting_evens(lst):
# then check the condition here
while (len(lst) > 0 and lst[0] % 2 == 0):
# then slice the list
lst = lst[1:]
return lst

# Call the function and print the result
print(delete_starting_evens([4, 8, 10, 11, 12, 15]))
print(delete_starting_evens([4, 8, 10]))
# output
[11, 12, 15]
[]