PYTHONCHALLENGE Telegram 1608
#مقدماتی_پایتون

✍️عملیات رشته

رشته ها نیز می توانند توسط اعداد صحیح ضرب شوند. این کار باعث ایجاد یک نسخه ی تکراری از آن رشته می شود.

❗️ رشته ها را نمی توان با هم ضرب کرد. همچنین رشته هارا با float نیز نمی توان ضرب کرد. و فقط رشته ها با اعدادی از نوع int می توانند ضرب شوند.

>>>print("spam" *3)
spamspamspam

>>>4*'2'
'2222'

>>>'17'*'87'
TypeError:can't multiply sequence by non-int of type 'str'

>>>'pythonisfun' *7.0
TypeError:can't multiply sequence by non-int of type 'float'


بعد مطالعه متن فوق به سوال زیر لطفا پاسخ بدهید:

🗂 مرکز آموزش پایتون

🆔 : @pythonchallenge
👍3



tgoop.com/pythonchallenge/1608
Create:
Last Update:

#مقدماتی_پایتون

✍️عملیات رشته

رشته ها نیز می توانند توسط اعداد صحیح ضرب شوند. این کار باعث ایجاد یک نسخه ی تکراری از آن رشته می شود.

❗️ رشته ها را نمی توان با هم ضرب کرد. همچنین رشته هارا با float نیز نمی توان ضرب کرد. و فقط رشته ها با اعدادی از نوع int می توانند ضرب شوند.

>>>print("spam" *3)
spamspamspam

>>>4*'2'
'2222'

>>>'17'*'87'
TypeError:can't multiply sequence by non-int of type 'str'

>>>'pythonisfun' *7.0
TypeError:can't multiply sequence by non-int of type 'float'


بعد مطالعه متن فوق به سوال زیر لطفا پاسخ بدهید:

🗂 مرکز آموزش پایتون

🆔 : @pythonchallenge

BY چالش پایتون


Share with your friend now:
tgoop.com/pythonchallenge/1608

View MORE
Open in Telegram


Telegram News

Date: |

While some crypto traders move toward screaming as a coping mechanism, many mental health experts have argued that “scream therapy” is pseudoscience. Scientific research or no, it obviously feels good. Among the requests, the Brazilian electoral Court wanted to know if they could obtain data on the origins of malicious content posted on the platform. According to the TSE, this would enable the authorities to track false content and identify the user responsible for publishing it in the first place. How to create a business channel on Telegram? (Tutorial) Content is editable within two days of publishing How to Create a Private or Public Channel on Telegram?
from us


Telegram چالش پایتون
FROM American