Afiz ⚡️ Profile picture
Dec 15 4 tweets 2 min read
Deque in Python with code samples and animation

Programming is fun when we add some colours and animations to it.

deque is a double-ended queue, which supports insertion and deletion from both ends.

Important functions of the deque 👇

A Thread 🧵👇
deque is a double-ended queue, which supports insertion and deletion from both ends.

Here is the visual representation:
Find the source code 👇

Star the repo if you like the content ⭐️

github.com/afizs/python-n…
I hope you like this content!

I create content around Python, NLP and ML.

Follow me at @itsafiz, if you don't want to miss anything.

RT 🔁 and Like ❤️ the first tweet for better reach!

Cheers 🎉

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Afiz ⚡️

Afiz ⚡️ Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @itsafiz

Dec 16
Create your own ChatGPT with OpenAI API and @streamlit

Why wait in the Queue, when you can build your own ChatGPT.

More details in the Thread 🧵👇
To Build your ChatGPT clone, you need a couple of Python libraries and an OpenAI API Key.

Find the full source code: github.com/afizs/chatgpt-…
Finally, I would like to thank @1littlecoder for his great tutorial on building a ChatGPT clone with Gradio and OpenAI.
Read 4 tweets
Dec 14
deque in Python (with code snippets)

deque is a double-ended queue, which supports insertion and deletion from both ends.

In this thread, I will show you how to implement deque in Python with code samples.

A Thread 🧵👇
deque implementation in Python
Find the source code in this repo:

github.com/afizs/python-n…

⭐️ The repo if you like the content.
Read 4 tweets
Dec 13
NamedTuples in Python (with code samples)

namedtuples allow us to give names to each element in the tuple. We can iterate through named tuples either by index or key

A Thread 🧵👇 Image
1. import namedtuples from collections module Image
2. Create a named tuple to represent the Student Image
Read 8 tweets
Dec 9
If you want to Master Power BI, open this thread.

Power BI is an important tool for a Data Analyst.

Become a Power BI expert for FREE with these courses.

A Thread 🧵👇
2. Edureka course

Read 9 tweets
Dec 8
Transcribe Youtube Videos using Python

In the previous post, we've seen how to transcribe audio files. Today we'll learn how to do the same for Youtube videos.

Follow me @itsafiz if you don't want to miss interesting end-to-end AI App development. Full details 👇

A Thread 🧵 Image
To transcribe YouTube videos, we need two libraries

1. YouTubeDL : github.com/ytdl-org/youtu…
2. FFmpeg suite: ffbinaries.com/downloads
Here is the complete source code: Give the repo a star if you like the program.

github.com/afizs/be-thebo…
Read 5 tweets
Dec 7
Extract Text from Audio files using Python

In the next couple of days, We will see how to extract text from audio and video files. Follow me @itsafiz if you don't want to miss it.

A Thread 🧵👇 Image
There are many ways and platforms that supports extracting text from audio file.
Such as

1. IBM's Speech to Text: cloud.ibm.com/apidocs/speech…

2. Google Speech to Text: codelabs.developers.google.com/codelabs/cloud
In this example, I have used @AssemblyAI for transcribing the audio file.

You can also try that by getting a free API Key from the
@AssemblyAI website.

assemblyai.com
Read 5 tweets

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/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

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

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(