0% found this document useful (0 votes)
2 views3 pages

Python Built-in Functions Guide

The document lists various built-in functions in Python categorized into different sections such as numerical, string, collections, boolean, iteration, type checking, type conversion, input/output, advanced functions, execution-related functions, and error handling. Each function is briefly described in Arabic, providing its purpose. This serves as a quick reference guide for Python built-in functions.

Uploaded by

Sohaila Elbadry
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views3 pages

Python Built-in Functions Guide

The document lists various built-in functions in Python categorized into different sections such as numerical, string, collections, boolean, iteration, type checking, type conversion, input/output, advanced functions, execution-related functions, and error handling. Each function is briefly described in Arabic, providing its purpose. This serves as a quick reference guide for Python built-in functions.

Uploaded by

Sohaila Elbadry
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

‫‪🧠 Python Built-in Functions‬‬

‫ﻟﻸرﻗﺎم واﻟﺤﺴﺎب ‪🔢 Functions‬‬


‫)(‪abs‬‬ ‫→‬ ‫اﻟﻘﯿﻤﺔ اﻟﻤﻄﻠﻘﺔ‬
‫)(‪round‬‬ ‫→‬ ‫ﺗﻘﺮﯾﺐ اﻟﺮﻗﻢ‬
‫)(‪pow‬‬ ‫→‬ ‫اﻷس‬
‫)(‪min‬‬ ‫→‬ ‫أﺻﻐﺮ ﻗﯿﻤﺔ‬
‫)(‪max‬‬ ‫→‬ ‫أﻛﺒﺮ ﻗﯿﻤﺔ‬
‫)(‪sum‬‬ ‫→‬ ‫ﻣﺠﻤﻮع اﻟﻌﻨﺎﺻﺮ‬
‫)(‪divmod‬‬ ‫→‬ ‫اﻟﻘﺴﻤﺔ واﻟﺒﺎﻗﻲ‬

‫‪ Strings‬ﻟﻠـ ‪🧵 Functions‬‬
‫)(‪chr‬‬ ‫رﻗﻢ → ﺣﺮف →‬
‫)(‪ord‬‬ ‫ﺣﺮف → رﻗﻢ →‬
‫)(‪format‬‬ ‫ﺗﻨﺴﯿﻖ اﻟﻨﺺ →‬

‫‪ Collections‬ﻟﻠـ ‪📦 Functions‬‬
‫)(‪len‬‬ ‫→‬ ‫ﻃﻮل اﻟﻌﻨﺼﺮ‬
‫)(‪sorted‬‬ ‫→‬ ‫ﺗﺮﺗﯿﺐ‬
‫)(‪reversed‬‬ ‫→‬ ‫ﻋﻜﺲ اﻟﺘﺮﺗﯿﺐ‬
‫)(‪enumerate‬‬ ‫→‬ ‫ﺪ ﻣﻊ‬
‫‪ index‬ﻋّ‬
‫)(‪zip‬‬ ‫→‬ ‫دﻣﺞ ﻋﻨﺎﺻﺮ‬

‫)‪ (Boolean‬ﻣﻨﻄﻘﯿﺔ ‪✅ Functions‬‬


‫)(‪any‬‬ ‫؟‪ True‬ھﻞ ﯾﻮﺟﺪ ﻋﻨﺼﺮ →‬
‫)(‪all‬‬ ‫؟‪ True‬ھﻞ ﻛﻞ اﻟﻌﻨﺎﺻﺮ →‬
‫)(‪bool‬‬ ‫ﺗﺤﻮﯾﻞ ﻟﻘﯿﻤﺔ ﻣﻨﻄﻘﯿﺔ →‬

‫‪ Iteration & Loops‬ﻟﻠـ ‪🔁 Functions‬‬


‫)(‪range‬‬ ‫ﺗﻮﻟﯿﺪ أرﻗﺎم →‬
‫)(‪map‬‬ ‫ﺗﻄﺒﯿﻖ داﻟﺔ →‬
‫)(‪filter‬‬ ‫ﺗﺼﻔﯿﺔ ﻋﻨﺎﺻﺮ →‬
‫)‪ (Type Checking‬ﻟﻔﺤﺺ اﻟﻨﻮع ‪🧪 Functions‬‬
‫)(‪type‬‬ ‫ﻧﻮع اﻟﻤﺘﻐﯿﺮ →‬
‫ھﻞ ﻣﻦ ﻧﻮع ﻣﻌﯿﻦ؟ → )(‪isinstance‬‬
‫؟‪ subclass‬ھﻞ → )(‪issubclass‬‬

‫ﻟﻠﺘﺤﻮﯾﻞ ﺑﯿﻦ اﻷﻧﻮاع ‪🔄 Functions‬‬


‫)(‪int‬‬
‫)(‪float‬‬
‫)(‪str‬‬
‫)(‪list‬‬
‫)(‪tuple‬‬
‫)(‪set‬‬
‫)(‪dict‬‬
‫)(‪complex‬‬

‫‪📥📤 Input / Output‬‬


‫)(‪input‬‬ ‫إدﺧﺎل ﻣﻦ اﻟﻤﺴﺘﺨﺪم →‬
‫)(‪print‬‬ ‫ﻃﺒﺎﻋﺔ →‬
‫)(‪open‬‬ ‫ﻓﺘﺢ ﻣﻠﻒ →‬

‫ﻣﺘﻘﺪﻣﺔ ‪ /‬ﺧﺎﺻﺔ ‪🧠 Functions‬‬


‫)(‪id‬‬ ‫→‬ ‫ﻋﻨﻮان ﻓﻲ اﻟﺬاﻛﺮة‬
‫)(‪dir‬‬ ‫→‬ ‫ﻣﺤﺘﻮﯾﺎت اﻟﻜﺎﺋﻦ‬
‫)(‪help‬‬ ‫→‬ ‫اﻟﻤﺴﺎﻋﺪة‬
‫)(‪vars‬‬ ‫→‬ ‫ﻣﺘﻐﯿﺮات اﻟﻜﺎﺋﻦ‬
‫)(‪globals‬‬ ‫→‬ ‫اﻟﻤﺘﻐﯿﺮات اﻟﻌﺎﻣﺔ‬
‫)(‪locals‬‬ ‫→‬ ‫اﻟﻤﺘﻐﯿﺮات اﻟﻤﺤﻠﯿﺔ‬
‫)(‪callable‬‬ ‫→‬ ‫ھﻞ ﻗﺎﺑﻞ ﻟﻼﺳﺘﺪﻋﺎء؟‬

‫ﻣﺘﻌﻠﻘﺔ ﺑﺎﻟﺘﻨﻔﯿﺬ ‪⚠ Functions‬‬


‫)(‪eval‬‬ ‫‪ expression‬ﺗﻨﻔﯿﺬ →‬
‫)(‪exec‬‬ ‫ﺗﻨﻔﯿﺬ ﻛﻮد →‬
‫)(‪compile‬‬ ‫ﺗﺤﻮﯾﻞ ﻟﻜﻮد →‬

‫ﻟﻸﺧﻄﺎء ‪🚨 Functions‬‬
‫)(‪Exception‬‬
BaseException()

You might also like