Epython Lab
6.07K subscribers
680 photos
31 videos
104 files
1.31K 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
Epython Lab pinned «Creating a shopping app using Python and Analyzing the data using Pandas N.B: Don't forget to subscribe to the channel if you are interested to receive more videos Thanks for watching! https://youtu.be/MJuF-4RIvtM»
Martin_Fitzpatrick_Create_Simple_GUI_Applications,_with_Python_&.pdf
7.4 MB
Create GUI Applications with Python & Qt5 (2020)

@epythonlab
Sorry, this is the bot you can send your feedback and solutions @EPYTHONLABBOT
Python-Programming.pdf
4.9 MB
Tkinter GUI Programming by Example

@epythonlab
👍1
Python Programming for Absolute Beginners

You don't need previous knowledge of Computer Programming

You can start learning now from scratch.


Subscribe to the YouTube Channel and receive all video tutorials from the scratch

https://youtu.be/cChdA70hnaU
Also find resources at https://t.me/epythonlab
👍2
#ChallengeAbsoluteDifference #Algorithm #DataStructure #Loop #Array

Consider an array of integers, arr[0], arr[1] ... arr[n-1]. We define the absolute difference between two elements, arr[i] and arr[j] (where i != j), to be the absolute value of arr[i] - arr[j]

Given an array of integers, find and print the minimum absolute difference between any two elements in the array. For example, given the array arr=[-2, 2, 4] we can create 3 pairs of numbers: [-2, 2], [-2, 4], and [2, 4] . The absolute differences for these pairs are |(-2)-2|=4, |(-2)-4|=6, and |2-4|=2 . The minimum absolute difference is 2.

Q: Define the minimumAbsoluteDifference function which has a parameter arr. It should return an integer that represents the minimum absolute difference between any pair of elements.
Post your solution @EPYTHONLABBOT
👍1
You can find all available books from files.
Epython Lab
#ChallengeAbsoluteDifference #Algorithm #DataStructure #Loop #Array Consider an array of integers, arr[0], arr[1] ... arr[n-1]. We define the absolute difference between two elements, arr[i] and arr[j] (where i != j), to be the absolute value of arr[i]…
Many of you are participated in this challenge. Thanks for your participation.
Your answers are correct and accepted.
But you always find the most efficient and optimized algorithm to solve problems.

Here is the efficient solution for the challenge. Share it.

def minimumAbsoluteDifference(arr):
arr.sort()
result = []
for i in range(len(arr)-1):
result.append(abs(arr[i+1]-arr[i]))
return sorted(result)[0]
Epython Lab pinned Deleted message
My choices are #Jupyter and #VSCode. Because interesting tools for data science.