Epython Lab
6.32K subscribers
674 photos
31 videos
104 files
1.26K 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
#NumberChallenge

How to put 1000000000 number like 1, 000,000,00.00?

Post your solution in the comment
Forwarded from Natneam Mesele
Forwarded from Future Data Science(FDS)
5 Reasons Why Programmers Should Think like Hackers:

1. Incomparable tenacity
2. Doing instead of reading and traditional learning
3. Anticipating potential security breaches
4. Creative thinking and willingness to break out of the mold
5. Having fun!

https://thehackernews.com/2019/12/cybersecurity-for-programmers.html
What is the correct syntax to output the type of a variable or object in Python?

  
Final Results
4%
print(typeOf(x))  
9%
print(typeof x)
26%
print(typeof(x))
61%
print(type(x))
TIP

Indentation is important for python programming you never miss it.

Indentation refers to the spaces at the beginning of a code line.

Where in other programming languages the indentation in code is for readability only, the indentation in Python is very important.

Python uses indentation to indicate a block of code.
Example:
for x in range (2, 5):
print x

N.B: Python will give you an error if you skip the indentation:

EXAMPLE:
for x in 5:
print x
Forwarded from Future Data Science(FDS)
1. Complete the code to return the following output p = [‘a’, ‘b’, ‘c’, ‘c’, ‘d’, ‘d’] _?__ (p[3:5]) print (p) Output: [‘a’, ‘b’, ;c’, ‘d’]
public poll

remove – 7
👍👍👍👍👍👍👍 78%
Bina, @contramot, Jay, @sal_270, Emil, @Asgardia360, @RaviVarma_T

rm – 1
👍 11%
Pallab

del – 1
👍 11%
@asibehtenager

👥 9 people voted so far.
Python | type() function

type() method returns class type of the argument(object) passed as parameter. type() function is mostly used for debugging purposes.

Two different types of arguments can be passed to type() function, single and three argument. If single argument type(obj) is passed, it returns the type of given object. If three arguments type(name, bases, dict) is passed, it returns a new type object.

Syntax : type(object)

Therefor the answer of the above question is print(type(x))

Any doubt ask

Join group discussion:

https://t.me/joinchat/H8JEqEojXCb0mUfnlAqbVA
Channel name was changed to «🐍Python for Data Science, AI & ML»
Anyone wants to manage this @python4fds channel, send your name, your current job and your future plan if you are assign as an admin of the channel via @asibehtenager
👍1
Forwarded from Deleted Account
we used the “{:,}” along with the format() function to add commas every thousand places starting from left. This is introduced in Python3 and it automatically adds a comma on writing the following syntax.
#PythonQ&A #DataScience #Bioinformatics

numbers = [ 6, 0, 2, 2, 1, 4, 1, 5]

Print out the above list items in a reverse order?
Post your answer @pythonEthBot
Forwarded from Nisrin
reverselist.py
123 B
Solution for the problem asked in the group...Nisrin Dhoondia
#PythonQ&A #DataCollection

females = sets (['marge', 'maude', 'lisa', 'maggie', 'edna' ])
Simpsons = sets (['homer', 'marge', 'bart', 'lisa', 'maggie'])

Finding the common elements

Discus on it and bring efficient solution.
Forwarded from Deleted Account