Telegram Group & Telegram Channel
دریافت اطلاعات از کاربر
برای دریافت اطلاعات از کاربر از دستور input استفاده می کنیم. کافی است مقدار دریافتی را به یک متغیر اختصاص دهیم. فرض کنید می خواهیم نام کاربر را دریافت کنیم. برای این منظور می توانیم از دستور زیر استفاده کنیم:
user_name = input("Please enter your name: ")
یا فرض کنید می خواهیم سن کاربر را دریافت کنیم:
user_age = input("Please enter your age: ")
مثال: برنامه ای بنویسید که نام کاربر را دریافت کند و به وی پیام خوش آمد نشان دهد. این عمل تا جایی ادامه پیدا کند که کاربر عبارت end را برای پایان برنامه تایپ کند.

#دریافت_اطلاعات_از_کاربر
#پایتون_مالی
#پایتون_مقدمانی

#مقدمات

پایتون برای مالی در تلگرام https://www.tg-me.com/ru/Python4Finance/com.python4finance
پایتون برای مالی در بله https://ble.im/ru/Python4Finance/com.python4finance



tg-me.com/python4finance/42
Create:
Last Update:

دریافت اطلاعات از کاربر
برای دریافت اطلاعات از کاربر از دستور input استفاده می کنیم. کافی است مقدار دریافتی را به یک متغیر اختصاص دهیم. فرض کنید می خواهیم نام کاربر را دریافت کنیم. برای این منظور می توانیم از دستور زیر استفاده کنیم:
user_name = input("Please enter your name: ")
یا فرض کنید می خواهیم سن کاربر را دریافت کنیم:
user_age = input("Please enter your age: ")
مثال: برنامه ای بنویسید که نام کاربر را دریافت کند و به وی پیام خوش آمد نشان دهد. این عمل تا جایی ادامه پیدا کند که کاربر عبارت end را برای پایان برنامه تایپ کند.

#دریافت_اطلاعات_از_کاربر
#پایتون_مالی
#پایتون_مقدمانی

#مقدمات

پایتون برای مالی در تلگرام https://www.tg-me.com/ru/Python4Finance/com.python4finance
پایتون برای مالی در بله https://ble.im/ru/Python4Finance/com.python4finance

BY Python4Finance




Share with your friend now:
tg-me.com/python4finance/42

View MORE
Open in Telegram


Python4Finance Telegram | DID YOU KNOW?

Date: |

Launched in 2013, Telegram allows users to broadcast messages to a following via “channels”, or create public and private groups that are simple for others to access. Users can also send and receive large data files, including text and zip files, directly via the app.The platform said it has more than 500m active users, and topped 1bn downloads in August, according to data from SensorTower.

Mr. Durov launched Telegram in late 2013 with his brother, Nikolai, just months before he was pushed out of VK, the Russian social-media platform he founded. Mr. Durov pitched his new app—funded with the proceeds from the VK sale—less as a business than as a way for people to send messages while avoiding government surveillance and censorship.

Python4Finance from ru


Telegram Python4Finance
FROM USA