AI Mirror Kiregha CORP

AI Mirror Kiregha CORP Quizzes Challenge yourself & Learn Python concepts build your career

powered by KIREGHA.CORPORATION,

21/12/2023

πŸŽ„ Merry Christmas, dear Developers and engineers! πŸŽ„

I hope this message finds you all in high spirits and enjoying the festive season. I wanted to take a moment to express my deepest gratitude for your continuous support and participation in my quizzes and challenges. Your enthusiasm and engagement have always been a tremendous source of motivation for me.

I apologize for my recent absence due to some eye-related issues, but I'm thrilled to announce that I'm now feeling much better and ready to dive back into the world of Python quizzes! I know you've been eagerly awaiting new challenges, and I can assure you that I have some exciting ones in store for you.

The past few weeks have given me time to reflect and come up with fresh and mind-boggling questions that will put your Python skills to the ultimate test. Get ready to embark on a learning journey like no other!

As we approach the end of the year, I want to extend my heartfelt gratitude to each and every one of you for your unwavering support. Your dedication to learning and sharing has created a vibrant and engaging community that I'm proud to be a part of.

So, let's celebrate this festive season together and embrace the new year with renewed energy and enthusiasm! Stay tuned for upcoming challenges and quizzes that will push the boundaries of your Python knowledge.

Once again, thank you for being amazing followers, coding lovers and committed developers. Wishing you all a merry Christmas filled with joy, love, and success. Let's make the upcoming year even more memorable!

Warmest regards,
Kiregha Corporation

Hello Devs and Engineers πŸ‘‹I would like to take this special moment to express my gratitude to you, shout out a Big Thank...
02/12/2023

Hello Devs and Engineers πŸ‘‹
I would like to take this special moment to express my gratitude to you, shout out a Big Thanks and I also wanted share the painful situation I am going through, I think I am in danger of losing my sight πŸ™†β€β™‚οΈ
But after consultation, πŸ‘¨β€βš•οΈthe doctor most suggested that as "software engineering student" I am I need to put on optical Eye glasses πŸ‘“ to protect from electronic devices lightπŸ’»πŸ–₯οΈπŸ“², use low brightness levelπŸ”….I find myself in a challenging phase of life where it feels like everything is falling apart. But I want to assure you that I am committed to overcoming these obstaclesπŸ’ͺ, and we will resume our activities very soon.✊
I planned that by January 2024 I will try to improve my workplace have a good setup and start my incredible brand new concept that I am probably sure you will enjoyπŸ€—

Anyway, I will be back soon and start from where we left.
Thanks for being a top engager and making it on to my weekly engagement list! πŸŽ‰ Deepa Padmanabha Kotla, Ryck Patrick, Tomasz Jadczuk, Rafiaullah Saadat, Tevin Omosh, Sylvain Lombard, Baxter Spring, ΠžΠ»Π΅ΠΊΡΠ°Π½Π΄Ρ€ Π§Π΅Ρ…Π½Ρ–ΠΉ, Srikanthchowdary Are, A.K. Pensona

Alright Devs and Engineers πŸ€— I hope we are all feeling great todayI got challenge Quiz challenge for you πŸ˜‡πŸ‘‰ What will be...
29/11/2023

Alright Devs and Engineers πŸ€— I hope we are all feeling great today

I got challenge Quiz challenge for you πŸ˜‡

πŸ‘‰ What will be the output πŸ€”

Happy coding πŸ€—

 () in Python, Some wrapping functions too.   POST THAT EXPLAINS THE CONCEPT BEHIND OUR PREVIOUS QUIZ πŸ€— πŸ˜€ LET'S ENJOY IT...
29/11/2023

() in Python, Some wrapping functions too.
POST THAT EXPLAINS THE CONCEPT BEHIND OUR PREVIOUS QUIZ πŸ€— πŸ˜€ LET'S ENJOY IT

πŸ‘‰ What is this function? πŸ€”

βœ… The () function is a built-in function in Python that helps us check the type of an object. It takes two arguments: the object we want to check and the type we want to compare it to. It returns if the object is of the specified type, and otherwise.

πŸ‘‰ With the of an example, let's say we have a variable "num" that contains the number 5. We can use "isinstance(num, int) to check if" num" is an integer. If it is, () will return . But if "num" is not an integer, it will return .

πŸ‘‰ Now, let's break down the code snippet in our previous qui

_________________________
def calculate_sum(numbers):
return sum(numbers)
_________________________

πŸ‘‰The "calculate_sum" function takes a list of numbers as input. It uses the "sum()" function to calculate the total sum of the numbers in the list and then returns that sum.

_________________________
def wrapper(func):
def inner(*args):
if any(not isinstance(arg, int) for arg in args):
print("Invalid input")
else:
return func(*args)
return inner
_________________________

βœ… The function is what we call a decorator. It takes another function, "func", as input. Inside , we define a new function called "inner". This "inner" function is where the magic happens.

πŸ‘‰ "inner" takes any number of arguments using the "*args" syntax. It then checks each argument using a loop. If any argument is not an integer (detected using "isinstance()"), it means we have an invalid input. In that case, the function prints the message "Invalid input" .

πŸ‘‰ However, if all the arguments are integers, it means we have valid inputs. In that case, the "inner" function calls the original function ("func") with those arguments using "func(*args)". It then returns the result of that function call.

_________________________
calculate_sum = wrapper(calculate_sum)
_________________________

πŸ‘‰ Here, we're applying the function as a decorator to the "calculate_sum" function. This means we're modifying the behavior of "calculate_sum" by adding the ability to check for valid inputs.

_________________________
result = calculate_sum([1, 2, 3, '4'])
print(result)
_________________________

πŸ‘‰ βœ… Finally, we're calling the modified "calculate_sum" function with a list of numbers: "[1, 2, 3, '4']" . Since '4' is not a valid input (it's a string instead of an integer), the function detects this and prints "Invalid input" instead of calculating the sum. Therefore, the output will be 'None' , which means there is no valid result to show.

πŸ˜‡ That's it buddies and Engineers I hope this explanation clarifies a bit about the function πŸ˜‡

⁉️ Did you learn something new today? πŸ™„ If yes, please help us reach more python enthusiasts and lovers like you by inviting them to join the community or share with them some of our previous quizzes challenges. Thank you. πŸ™

Amazing Python Developers and Engineers πŸ‘‹ Hope you're doing well today πŸ˜‡.πŸ‘‰ What will be the output of this code snippet ...
28/11/2023

Amazing Python Developers and Engineers πŸ‘‹ Hope you're doing well today πŸ˜‡.

πŸ‘‰ What will be the output of this code snippet πŸ€”

Happy coding πŸ€—

Hello Python Developers πŸ‘‹How is your weak days going?Quick question :πŸ‘‰ What's the output of this code snippet πŸ€”Happy cod...
28/11/2023

Hello Python Developers πŸ‘‹
How is your weak days going?

Quick question :
πŸ‘‰ What's the output of this code snippet πŸ€”

Happy coding πŸ€—

AMAZING DEVS AND ENGINEERS πŸ‘‹Hopefully we're all having amazing start of the week πŸ˜‡πŸ‘‰ What's the output of this code snipp...
27/11/2023

AMAZING DEVS AND ENGINEERS πŸ‘‹
Hopefully we're all having amazing start of the week πŸ˜‡

πŸ‘‰ What's the output of this code snippet πŸ€”

Happy coding πŸ€—

Hello Devs and Engineers πŸ‘‹ Hope you're doing well today πŸ˜‡ I got a juicy Quiz for you πŸ˜‡πŸ‘‰ What's the output of this code s...
27/11/2023

Hello Devs and Engineers πŸ‘‹ Hope you're doing well today πŸ˜‡
I got a juicy Quiz for you πŸ˜‡

πŸ‘‰ What's the output of this code snippet πŸ€”

Happy coding

Hello Devs and Engineers πŸ‘‹ Hope you are doing great πŸ€—Quick Python QuizπŸ‘‰ What's the output of this code snippet πŸ€”Happy co...
26/11/2023

Hello Devs and Engineers πŸ‘‹ Hope you are doing great πŸ€—

Quick Python Quiz
πŸ‘‰ What's the output of this code snippet πŸ€”

Happy coding πŸ€—

  DEVS AND ENGINEERS πŸ‘‹ hope you all having a great Sunday πŸ€—What's the output of this code snippet πŸ€”Happy coding         ...
26/11/2023

DEVS AND ENGINEERS πŸ‘‹ hope you all having a great Sunday πŸ€—

What's the output of this code snippet πŸ€”

Happy coding

Hello πŸ‘‹ Did you know that the first computer mouse was invented by Douglas Engelbart in 1964? πŸ€”If no this is for you to ...
25/11/2023

Hello πŸ‘‹
Did you know that the first computer mouse was invented by Douglas Engelbart in 1964? πŸ€”

If no this is for you to solve πŸ‘‡ πŸ‘‡ πŸ‘‡

Happy coding πŸ€—

Hello Devs and Engineers πŸ‘‹ Hope you are doing greatQuick question :πŸ‘‰ What is the output of this code snippet πŸ€” Happy cod...
24/11/2023

Hello Devs and Engineers πŸ‘‹ Hope you are doing great

Quick question :
πŸ‘‰ What is the output of this code snippet πŸ€”

Happy coding πŸ€—

Address

African Silicon Valley
Nairobi

Alerts

Be the first to know and let us send you an email when AI Mirror Kiregha CORP posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Contact The Business

Send a message to AI Mirror Kiregha CORP:

Share