Discover and read the best of Twitter Threads about #100daysofpython

Most recents (5)

Kubernetes Interview Ready Guide β™ΎπŸ‹β˜ΈοΈ

Everything you need to know to Crack kubernetes Interview πŸš€βš‘

Handwritten πŸ§΅πŸ‘‡
30 Days Challenge Thread πŸš€
I will add 5 Interview questions every alternative day 🌟 in this thread so make sure to bookmark this and share with others to help them πŸ”₯
Disclaimer:

β€’ The questions covered here are mostly conceptual
β€’ I never claim only these type of questions are/should be asked during interviews
β€’ For interviews, you should have fundamentals strong. And you should be able to provide solutions to practical problems.
Read 10 tweets
Hi Reader, I hope you are having a good day and will have a great life from now on.

Day 8 of #100DaysOfCode.

Python
Type 2 of itertools
remember you have to import them using
from itertools import name_of_itertool
1)takewhile
Take values from iterable while the predicate function remains true,once predicate function returns false it will no
longer take values.
example:
lis=[2,4,1,8,6,14]
lis_even=list(takewhile(lambda x:x % 2 == 0,lis))
returns lis_even=[2,4]
2)accumulate
Returns a running total of values in iterable.
lis=[0,1,2,3]
lis_new=list(accumulate(lis))
returns lis_new=[0,1,3,6]
Read 7 tweets
Hi Reader, I hope you are having a good day and will have a great life from now on.

Day 7 of #100DaysOfCode.

Python
1)Recursive Functions:
Every recursive function has a base case that stops it from going into the fourth dimension(that's what I like to think πŸ˜…).
Example 1: Image
Recursive functions can be implemented with more than one function. Here's an example for checking even and odd numbers
Example 2: Image
Read 8 tweets
Day 3 of #100DaysOfCode
Python.
Motivation, Don't Repeat Yourself.

1)Defining a function
def function_name(parameters_if_any):
"""indentation identifies the code block of a function"""
return data_if_any
Parameters: are variables in function definition.
Arguments: are the values put into parameters when functions are called.
Calling a function: function_name(arguments_if_any)
2)Modules
These are the codes written to perform useful tasks. Some modules are already part of standard library and others need to be
installed.

-To import an existing module e.g. math
import math #imports whole math module
Read 15 tweets
Starting a video thread!! πŸ§΅πŸ‘‡

In this video thread you will find 8 #python videos explaining the basics in python for beginners!

Every video is about 100 seconds :)

quick disclaimer it's obviously not covering everything about python ;)
1/8 Variables
Variables is a method to store information:
#Developer
2/8 Lists

Lists is a type of variable. Lists allow you to store multiple pieces of information individually:
#100DaysOfCode #100DaysOfPython
Read 10 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!