Sourav Mandal Profile picture
Feb 25 25 tweets 4 min read
✅ 20 Functions use in Python
#100DaysOfCode
🧵↓
➀ all ()
🔹This function returns True, if all element of the iterable are True or itcrable is empty.
EX:-
a = array([100,200,300,400,500])
b = array([100,200,300,400,500])
c=a==b
all(c)
➁ any ()
🔹 This function returns True, if any one element of the iterable is True. if iterable is empty then returns False.
EX:-
a = array([100, 200, 300, 400, 500])
b = array([100,20,30,400,50])
c=a == b
➂ ascii ()
🔹The Ascii method in python returns a string containing a printable representation of an object for non-alphabets or invisible characters such as tab, carriage return, form feed etc. it escapes the non-ASCII characters in the string using \x, \u or \U escapes.
➃ Bin ()
🔹 Convert an integer number to a binary string prefixed with "0d". The result i a valid python ex-pression. if x is not a python int object, it has to define an __index__() method that returns an integer.
➄Bool ()
🔹 The bool method converts a value to boolean (true or False) using the standard truth testing procedure.
EX:- How bool() works ?
test = []
orint(test, 'is',bool(test))
➅ Breakpoint()
🔹this function drops you into the debugger at the call site. specifically, it calls sys.breakpointhook (), passing args and kws straight through. ny default, sys.breakpointhook () calls pdb.set_trace() expecting no arguments. in this case, it is purely a
convenience func tion so you don't have to explicitly import pdb or type as much code to enter the debugger. however, sys.breakpoitthook () can be set to some other function and breakpoint() will automatically call that, allowing you to drop into the debugger of choice
➆ bytearray , ➇ bytes ()
🔹Bytes & bytearray are a sequential data type in python 3 and stores binary sequence of values ranging from 0 to 256 (8-bits)
⇥ bytes is a immutable
⇥ bytearray is a mutable
➈ callable ()
🔹Return True if the object argument appears callable False if not. if this returns true, it is still possible that a call fails, but if it is false, calling object will never succeed. note that classes are callable (calling a class returns a new instance)
instances are callable if their class has a__call__() method.
➉ chr()
🔹Return the string representing a character whose Unicode code point is the integer i. for example, chr(97) returns the string 'a' while chr (8364) returns the string 'c'. This is the inverse of ord (). The valid range for the argument is from 0 through 1,114,111
(0x10FFFF in base 16). valueError will be raised if is outside that range.
➀ ➀ classmethod ()
🔹class method are the method which act upon the class variables or static of the clas. Decorator @ classmethod need to write above the class method By default, the parameter of class method is cls which to the class itseif.
➀➁ compile ()
🔹The python compile() method retums an exectable code object as an "Abstract Syntex Tree" that is represemed as all ast object, you can pass this code object into the exex() or eval() function and run it dynamically in your python code.
this way, you can programmatically create source code and execute it at runtime. to use the function you must pass the string code to be executed, the filename, and the execution mode.
➀➂ complex ()
🔹Complex numbers are especially used in electronics, optics, and quantum theory form describing waves and periodic phenomena.
🔹Fourier transform uses complex numbers.
⇥Audio signal processing in machine learning
⇥ Speech recognition system
➀➃ delattr()
🔹the delattr () method id used to delete the named attribute from the object, with the prior permission of the object Syntax: delattr(object, name) the function takes only tow parameter: object : from which the name attribute is to be removed.
➀➄ dict()
🔹the dict object is the dic-tionary class. see dict and mapping types -- dict for documentation about this class. for other containers see the list, set and tuple classes, as well as the collections module.
➀➅ dir ()
🔹This is an built in functions used to return a attribute of the contains defined by the user.
➀➆ divmode()
🔹he divmod() method in python takes two numbers and returns a pair of numbers consisting of their quotient and remainder.
➀➇ enumerate ()
🔹this is the function used to fine the position of the targeted string""'
➀➈ hash()
🔹hash() function is a built-in function and returns the hash value of an object if it has one. The hash value is an integer which is used to quickly compare dictionary keys while looking at a dictionary.
➁0⃣ abs()
🔹Return the absolute value of a number. the argument may be an integer or a floating point num-ber. if the argument is a complex number, its magnitude is returned.
#pyhton

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Sourav Mandal

Sourav Mandal Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @souravWD

Feb 26
✅ Chrome Keyboard All Shortcut
#100DaysOfCode
🧵↓
🔹ALT + F4 ⇥ Close the current window.
🔹ALT + Space Then N ⇥ Minimize the current window.
🔹Alt + Space Then X ⇥ Minimize the current window.
🔹Alt + F Then X = Quit Google Chrome
🔹Alt + F = Open the chrome menu
🔹Alt + Shift + B = Show or Hide the Bookmarks bar
🔹Ctrl + Shift + O = Open the bookmarks manager
🔹Ctrl + H = Open the History page in a new tab
🔹Ctrl + F6 = Skip to web contents
🔹Ctrl + n = Open a new Window
🔹Ctrl + Shift + N = Open a New Window in Incognito Mode
🔹Ctrl + T = Open a new Tab
Read 8 tweets
Feb 26
✅ All 25 Algorithms 🧵↓
🔹Basics
➀ Huffman Coding Compression algo.
➁ Euclid's algo.
➂ Union Find algo.
🔹Searching
➀ Linear Search.
➁ Binary Search.
➂ Depth Fist Search.
➃ Breadth First Search.
Read 7 tweets
Feb 25
✅Web Developer Skills
#100DaysOfCode
🧵↓
➀ Basics
🔹HTML
🔹CSS
🔹JavaScript
➁ Framework
🔹Bootstrap
🔹React .js
🔹Angular .js
🔹Vue .js
Read 7 tweets
Feb 25
🔹Best 6 Websites for Coding
#Coding
🧵↓
➀ Free Cpde Camp
⇥ Bset for beginners learning to code. start here if you're at step zero.
freecodecamp.org
➁ Scrimba
⇥ Interactive way to learn to code. code alongside your instructor
scrimba.com
Read 8 tweets
Feb 24
✅A Complete list Python Developer
⇥ Python Libraries and Framewors 🧵↓
#100DaysOfCode
⬕ Machine Learning
➀ Numpy
➁ Keras
➂ Theano
➃ Pandas
➄ Pytorch
➅ TenosrFlow
➆ Scikit-Learn
➇ Matplotlib
➈ Scipy
➉ Seaborn
⬕Web Development
➀ Django
➁ Flask
➂ Bottle
➃ Cherrypy
➄ Pyramid
➅ Web2py
➆ TuroGears
➇ Cubicweb
➈ Dash
➉ Falcon
Read 8 tweets
Feb 24
Input Type In Html 🧵↓
⇥ <input type="text">
⇥ <input type="password">
⇥ <input type="radio">
⇥ <input type="checkbox">
⇥ <input type="button">
⇥ <input type="color">
⇥ <input type="email">
⇥ <input type="file">
⇥ <input type="hidden">
⇥ <input type="image">
⇥ <input type="number">
#html
⇥ <input type="range">
⇥ <input type="search">
⇥ <input type="tel">
⇥ <input type="time">
⇥ <input type="date">
⇥ <input type="datetime-local">
⇥ <input type="week">
⇥ <input type="month">
⇥ <input type="url">
⇥ <input type="submit">
⇥ <input type="reset">
#htmlinput
Read 4 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(