بااستفاده از دستور 'del' می توانیم مقداری که به یک متغیر نسبت داده ایم را حذف کنیم.
>>> foo = "a string" >>> foo 'a string' >>> bar NameError: name 'bar' is not defined >>> del foo >>> foo NameError: name 'foo' is not defined
⚠️درصورتی که به متغیر هیچ چیزی نسبت نداده باشید یا بااستفاده از دستور 'del' مقدار نسبت داده شده به متغیر حذف شده باشد، در هنگام اجرای دستور 'foo<<<' برنامه به شما خطا می دهد. زیرا دیگر این متغیر وجود ندارد. (وقتی شما به یک متغیر چیزی نسبت نمی دهید، مثل این است که آن متغیر اصلا وجود ندارد)
❗️ >>> foo = input("Enter a number: ") Enter a number: 7 >>> print(foo) 7
بااستفاده از دستور 'del' می توانیم مقداری که به یک متغیر نسبت داده ایم را حذف کنیم.
>>> foo = "a string" >>> foo 'a string' >>> bar NameError: name 'bar' is not defined >>> del foo >>> foo NameError: name 'foo' is not defined
⚠️درصورتی که به متغیر هیچ چیزی نسبت نداده باشید یا بااستفاده از دستور 'del' مقدار نسبت داده شده به متغیر حذف شده باشد، در هنگام اجرای دستور 'foo<<<' برنامه به شما خطا می دهد. زیرا دیگر این متغیر وجود ندارد. (وقتی شما به یک متغیر چیزی نسبت نمی دهید، مثل این است که آن متغیر اصلا وجود ندارد)
❗️ >>> foo = input("Enter a number: ") Enter a number: 7 >>> print(foo) 7
For crypto enthusiasts, there was the “gm” app, a self-described “meme app” which only allowed users to greet each other with “gm,” or “good morning,” a common acronym thrown around on Crypto Twitter and Discord. But the gm app was shut down back in September after a hacker reportedly gained access to user data. 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. A few years ago, you had to use a special bot to run a poll on Telegram. Now you can easily do that yourself in two clicks. Hit the Menu icon and select “Create Poll.” Write your question and add up to 10 options. Running polls is a powerful strategy for getting feedback from your audience. If you’re considering the possibility of modifying your channel in any way, be sure to ask your subscribers’ opinions first. You can invite up to 200 people from your contacts to join your channel as the next step. Select the users you want to add and click “Invite.” You can skip this step altogether.
from us