Работаем с атрибутами объектов
Помимо привычного обращения к атрибутам объектов через точку, в Python есть 4 специальных функции: getattr, setattr, delattr и hasattr.
По названиям можно понять, что первые три отвечают за получение, установку и удаление атрибута. А последний проверяет, существует ли атрибут с указанным названием у объекта или нет.
Во всех функциях первыми двумя аргументами идут объект и название атрибута в виде строки. В setattr также нужно передать новое значение для атрибута.
На практике использование подобного — довольно редкий случай, но иногда может сильно выручить, так что берите на вооружение.
#python#tips
I should have
Should' is the past tense of the word 'shall.' When using the words 'should have' you are talking about something in the past that you 'ought to' or 'might have' done.
📖, "I should have gone with you."
📖, "I should have studied more for my test."
📖, "I should have read the directions before starting."
📖, "I should have eaten breakfast this morning."
📖, "I should have married her when I had the chance."
'Shall' is something that will take place or exist in the future.
📖, "I shall see it tomorrow."
📖, "I shall go outside if it's nice out."
📖, "I shall pay for this later."
#tips
#Teamjimmy
#sirjimmy
Phrasal verbs for 'Anger':
1. To get to somebody: to annoy or upset someone.
2. To wind somebody up: to tease or irritate someone. To tease or to irritate is slightly less serious than to upset so to wind up is less intense than to get to.
3. To piss somebody off: to annoy and make someone angry.
4. To work somebody up: to slowly make someone angry or excited.
5. To tick somebody off: to make someone annoyed or angry.
6. To blow up: to lose your temper. When you blow up you can do all sorts of things like screaming, swearing and breaking stuff.
7. To freak out: is similar to blow up. When you freak out you become irrational and you overreact to things.
#Tips
#Teamjimmy
#sirjimmy
12 = “twelve,” but it’s *TWELFTH*, not “twelveth.”
9 = “nine,” but it’s *NINTH*, not “nineth.”
4 = “four,” but it’s *FORTY*, not “fourty.”
#Tips
#Teamjimmy
#sirjimmy
💞Learn English Confidentiality💞
1. Listen and repeat
We all have a favorite movie, television show or even YouTube channel. But instead of just watching them silently, listen carefully to what the characters or hosts are saying and repeat the dialogue that interests you. Go ahead and pause, rewind and listen to the lines several times if you must. Or better yet, turn on the English subtitles setting to help you identify each word. This is a fun way of practicing both your listening and speaking skills with materials that are both enjoyable and entertaining.
2. Find a friend
It’s always difficult to practice by yourself, especially when it comes to improving your speaking skills. Therefore, find a likeminded group of friends or classmates who shares your goal of becoming more confident in using English. Get together and implement the “English Only” rule while you hang out, meaning that everyone must only speak English for the next hour or two. With such a support system, you’ll feel more secured to open up and speak English without being hampered by insecurities.
3. Read out loud
Whether you prefer a novel or a piece of non-fiction text, spend at least 30 minutes every day reading, and then another 30 minutes reading out loud. This is a great way of developing your reading skills while practicing pronunciation as well as intonation of various words and lengths of sentences. If you are unsure of how to pronounce a specific word, simply consult a learner’s dictionary, Google or YouTube. But don’t get too caught up on the details of every single word you don’t understand. The point of this exercise is to enhance your confidence in speaking, and reading out loud allows you to practice pronunciation in the privacy and comfort of your own home/room.
4. Don’t be afraid of making mistakes
Remember: it’s okay to make mistakes. If you find yourself stumbling across long or complicated words, simply stop and give yourself a few seconds to breathe, then continue speaking. The fact that you’re communicating in a language that is not your mother tongue is reason enough for your to be proud of your accomplishments.
As with every difficult task, the key to speaking English with confidence is to practice, practice and practice some more. Be consistent in your language journey and make sure to set aside some time every day to speak English!
Study well ,and have an ice cream
😊
✓||\
_/\_[🍧]
#Tips
#Teamjimmy
#sirjimmy
Is this #AGI?
(#Python Code generated by #GPT5)
async def get_api():
global api_obj
if api_obj is None:
with _api_init_lock:
if api_obj is still None: # still None?!
from api import API
api_obj = API("accounts.db")
return api_obj
🐟