🐍 Python & Raspberry 🐍
8.21K subscribers
1.92K photos
125 videos
623 files
1.23K links
Python- Raspberry Pi-AI-IOT
ادمین : فرهاد ناصری زاده
@farhad_naserizadeh
@farhad3412

گروه پایتون
@Python_QA
تبادل
@mmtahmasbi
کانال مرتبط
@new_mathematical
@micropython_iot
@c_micro
اینستاگرام
http://Instagram.com/python_raspberry
Download Telegram
#آموزش 5
#function

🔴 توصیف توابع ،بسیار کاربردی🔴

📌int(x [,base])

Converts x to an integer. base specifies the base if x is a string.

📌long(x [,base] )

Converts x to a long integer. base specifies the base if x is a string.

📌float(x)

Converts x to a floating-point number.

📌complex(real [,imag])

Creates a complex number.

📌str(x)

Converts object x to a string representation.

📌🌟repr(x)

Converts object x to an expression string.

📌eval(str)

Evaluates a string and returns an object.

📌tuple(s)

Converts s to a tuple.

📌list(s)

Converts s to a list.

📌set(s)

Converts s to a set.

📌dict(d)

Creates a dictionary. d must be a sequence of (key,value) tuples.

📌frozenset(s)

Converts s to a frozen set.

📌chr(x)

Converts an integer to a character.

📌unichr(x)

Converts an integer to a Unicode character.

📌ord(x)

Converts a single character to its integer value.

📌hex(x)

Converts an integer to a hexadecimal string.

📌oct(x)

Converts an integer to an octal string.

@raspberry_python