PYTHON_WITH_MOHAMMAD Telegram 57
حالا برای تمرین بیشتر این کد پایینی رو ببینیید.

یه نکته اضافه تر از اسکریپت بالا داره و اونم پارامتر K هست که تعداد کارکتر های رندوم رو مشخص می کنه.

import string
import random

# Generating a random string of length 8 using ascii_letters
random_string = ''.join(random.choices(string.ascii_letters, k=8))
print(random_string)



tgoop.com/python_with_mohammad/57
Create:
Last Update:

حالا برای تمرین بیشتر این کد پایینی رو ببینیید.

یه نکته اضافه تر از اسکریپت بالا داره و اونم پارامتر K هست که تعداد کارکتر های رندوم رو مشخص می کنه.

import string
import random

# Generating a random string of length 8 using ascii_letters
random_string = ''.join(random.choices(string.ascii_letters, k=8))
print(random_string)

BY آموزش پایتون و برنامه نویسی


Share with your friend now:
tgoop.com/python_with_mohammad/57

View MORE
Open in Telegram


Telegram News

Date: |

2How to set up a Telegram channel? (A step-by-step tutorial) A vandalised bank during the 2019 protest. File photo: May James/HKFP. While the character limit is 255, try to fit into 200 characters. This way, users will be able to take in your text fast and efficiently. Reveal the essence of your channel and provide contact information. For example, you can add a bot name, link to your pricing plans, etc. “Hey degen, are you stressed? Just let it all out,” he wrote, along with a link to join the group. Ng Man-ho, a 27-year-old computer technician, was convicted last month of seven counts of incitement charges after he made use of the 100,000-member Chinese-language channel that he runs and manages to post "seditious messages," which had been shut down since August 2020.
from us


Telegram آموزش پایتون و برنامه نویسی
FROM American