Epython Lab
6.44K subscribers
660 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
Epython Lab
#ChallengeMersenneNumber #DataStructure #List #ProgramFlow #Python - A Mersenne number is any number that can be written as 2^p - 1 for some p. For example, 3 is a Mersenne number (2^2 - 1) as is 31 (2^5 - 1). - Write a function that accepts an exponent…
Dear members, does this challenge really hard? Only one member tried yet. Do you want the solution? If yes, choose the way I deliver the solution. Let's know now.
anonymous poll

In video – 16
πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘ 62%

In code only(text form) – 10
πŸ‘πŸ‘πŸ‘πŸ‘ 38%

πŸ‘₯ 26 people voted so far.
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.