Python Predefined Functions

📔 : Python 🔗

Predefined Functions वो functions होते हैं जिन्हे define करने की जरूरत नहीं होती है , ये Python में built in होते हैं। बस simply करना होता है और अपनी definition के according Output return करते हैं।


Function Name Description
print() इसका use किसी message को standard Output devices पर print करने के लिए किया जाता है। print होने वाला message कुछ भी हो सकता है string , numeric , Boolean .
type()इसका use किसी variable का type जानने के लिए किया जाता है।
len()इसका use किसी countable type के data (जैसे : string , list , tuple set etc... ) की length जानने के लिए किया जाता है।
int()इसका use किसी numeric / float number को in type में convert करने के लिए किया जाता है।
float()इसका use किसी integer / string number को float type में convert करने के लिए किया जाता है।
list()यह किसी set / tuple को list में convert करता है।
tuple()यह किसी set / list को tuple में convert करता है।
set()यह किसी tuple / list को को set में convert करता है।
bool()यह किसी specified Object को Boolean value True / False में convert करता है।
abs()यह किसी numeric number की absolute value return करता है।
all()यह True return करता है अगर किसी iterable Object (list , set , tuple) में सभी values True हैं।
any()यह True return करता है अगर किसी iterable Object (list , set , tuple) में कोई एक value True हैं।
bin()यह किसी numeric number को Binary numbers में convert करता है।
callable()यह True return करता है अगर कोई Object callable है otherwise False return करता है।
complex()यह method complex number return करता है।
delattr()यह method , किसी specified Object से किसी property / method को delete करता है।
dir()यह method , किसी specified Object की सभी property / method किस list करता है।
eval()यह method , किसी expression को evaluate और execute करता है।
hasattr()यह True return करता है अगर किसी Object में specified property / method present है।
hash()यह किसी Object की hash value return करता है।
hex()यह किसी number को hexadecimal numbers में convert करता है।
id()यह किसी Object की id करता है।
input()यह किसी user से input लेने के लिए use किया जाता है।
isinstance()यह True return करता है अगर कोई specified Object किसी Object का instance है।
issubclass()यह True return करता है अगर कोई specified Class किसी Class की subclass है।
max()यह किसी iterable Object में से सबसे large value return करता है।
memoryview()Returns a memory view object
min()यह किसी iterable Object में से सबसे minimum value return करता है।
next()यह किसी iterable Object में से next value return करता है।
oct()यह किसी value को Octal numbers में convert करता है।
open()यह किसी File को open करके उसका Object return करता है।
range()यह sequence number return करता है।
round()Rounds a numbers
slice()Returns a slice object
sorted()Returns a sorted list
str()Returns a string object
sum()Sums the items of an iterator
super()Returns an object that represents the parent class
zip()Returns an iterator, from two or more iterators

Related Topics :

Rahul Kumar

Rahul Kumar

Hi ! I'm Rahul Kumar Rajput founder of learnhindituts.com. I'm a software developer having more than 4 years of experience. I love to talk about programming as well as writing technical tutorials and blogs that can help to others. I'm here to help you navigate the coding cosmos and turn your ideas into reality, keep coding, keep learning :)

Get connected with me. :) LinkedIn Twitter Instagram Facebook

b2eprogrammers