Ch 10: Validating Pydantic Models using Fields - Python FastAPI
Live training at 6.00 PM today of Chapter 10 on FastAPI.
JOIN ME!!!
Question & Answer session follows after the video session.
#video #videotutorial #python #FastAPI
Live training at 6.00 PM today of Chapter 10 on FastAPI.
JOIN ME!!!
Question & Answer session follows after the video session.
#video #videotutorial #python #FastAPI
YouTube
Validating Pydantic Models using Fields in FastAPI - FastAPI Python Tutorial :10 - iGnani Adda247
In this FastAPI Python Tutorial, I am going to show you, step by step, Validating Pydantic Models Using Fields in FastAPI. This tutorial on building a restapi in python will teach you using request body in FastAPI with all its related functionalities, step…
Forwarded from Python Projects
Practice Code: 0004
Check if a palindrome can be created from a string entered by the user.
A palindrome is a word, number, phrase, or other sequence of characters which reads the same backward as forward, such as madam, racecar, or the number 10801.
"madam" => true - is already a palindrome
"mamad" => true - can be made a palindrome
"sir" => false - cannot be made a palindrome
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #numbers #algorithm
Check if a palindrome can be created from a string entered by the user.
A palindrome is a word, number, phrase, or other sequence of characters which reads the same backward as forward, such as madam, racecar, or the number 10801.
"madam" => true - is already a palindrome
"mamad" => true - can be made a palindrome
"sir" => false - cannot be made a palindrome
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #numbers #algorithm
Forwarded from Python Projects
#PracticeCode: 0005
Permutation: In mathematics, permutation is the act of arranging the members of a set into a sequence or order, or, if the set is already ordered, rearranging its elements—a process called permuting. Permutations differ from combinations, which are selections of some members of a set regardless of order.
Task:
Write a function, which determines whether one line is a permutation of another. Write an algorithm that optimally finishes the task.
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm
Permutation: In mathematics, permutation is the act of arranging the members of a set into a sequence or order, or, if the set is already ordered, rearranging its elements—a process called permuting. Permutations differ from combinations, which are selections of some members of a set regardless of order.
Task:
Write a function, which determines whether one line is a permutation of another. Write an algorithm that optimally finishes the task.
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm
Forwarded from Python Projects
Hello all,
The Practice problems are posted to improve your problem solving skill. While a lot of problems already have inbuilt functions in Python, if the task is about coming up with an algorithm, then its better you stay away from using the inbuilt functions.
You can submit your solutions to the tasks in our group @python_programmers_club
Post only the code and don't post a screen shot of your solution. If the approach is not already submitted, then we will update the github page with your solution.
There can be a lot of different approaches, the variety of solutions will only allow us to look from a different perspective.
And finally, let's have a good debate on these approaches.
The Practice problems are posted to improve your problem solving skill. While a lot of problems already have inbuilt functions in Python, if the task is about coming up with an algorithm, then its better you stay away from using the inbuilt functions.
You can submit your solutions to the tasks in our group @python_programmers_club
Post only the code and don't post a screen shot of your solution. If the approach is not already submitted, then we will update the github page with your solution.
There can be a lot of different approaches, the variety of solutions will only allow us to look from a different perspective.
And finally, let's have a good debate on these approaches.
Python Projects ——————— #PracticeCode: 0006
Task:
Given a line, the words in it are indicated with a space. Print words in descending order of their length.
Input: "My favourite programming language is Python.",
Output: "programming favourite language Python My is."
Use an optimal algorithm to solve this problem.
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm
#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm
Task:
Given a line, the words in it are indicated with a space. Print words in descending order of their length.
Input: "My favourite programming language is Python.",
Output: "programming favourite language Python My is."
Use an optimal algorithm to solve this problem.
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm
#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm
Telegram
Python Projects
A single repository of projects related to Python, ML, Datascience & BigData.
Resources — »»» @python_resources_iGnani
Projects — »»» @python_projects_repository
Questions— »»» @python_interview_questions
Forum — »»» @python_programmers_club
Resources — »»» @python_resources_iGnani
Projects — »»» @python_projects_repository
Questions— »»» @python_interview_questions
Forum — »»» @python_programmers_club
Forwarded from Python Projects
#PracticeCode: 0006
Task:
Given a line, the words in it are indicated with a space. Print words in descending order of their length.
Input: "My favourite programming language is Python.",
Output: "programming favourite language Python My is."
Use an optimal algorithm to solve this problem.
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm
Task:
Given a line, the words in it are indicated with a space. Print words in descending order of their length.
Input: "My favourite programming language is Python.",
Output: "programming favourite language Python My is."
Use an optimal algorithm to solve this problem.
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm
Forwarded from Python Projects
#PracticeCode: 0007
Task:
Write a function, which counts each character in a string and prints the output with the character count.
Input: "xxXXXXXAAABBcCDDDEEEEccc",
Output: "x2X5A3B2c1C1D3E4c3"
Try solving it using the an optimal algorithm and then solve it using functions or packages of Python.
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm
Task:
Write a function, which counts each character in a string and prints the output with the character count.
Input: "xxXXXXXAAABBcCDDDEEEEccc",
Output: "x2X5A3B2c1C1D3E4c3"
Try solving it using the an optimal algorithm and then solve it using functions or packages of Python.
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm
Forwarded from Python Projects
#PracticeCode: 0008
Task:
Fill the water into all the bottles. Some are already full, while some are empty and some are partially filled.
Each bottle can contain X millilitres of water (dynamic, entered by user), while the capacity of Jar is 1 litre.
An array (given by user) is given with the existing bottles on the table, with 0 to 10 as the values for each element, where 0 means its empty and 10 means its full.
Fill all the bottles and print how much additional water was used to fill all the bottle.
Come up with an optimal algorithm and implement it. Use least amount of variables and statements, but performance matters.
Input:
- Bottles - 5,6,10,0
- BottleCapacity - 1
Output: 1.9 ltrs
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm
Task:
Fill the water into all the bottles. Some are already full, while some are empty and some are partially filled.
Each bottle can contain X millilitres of water (dynamic, entered by user), while the capacity of Jar is 1 litre.
An array (given by user) is given with the existing bottles on the table, with 0 to 10 as the values for each element, where 0 means its empty and 10 means its full.
Fill all the bottles and print how much additional water was used to fill all the bottle.
Come up with an optimal algorithm and implement it. Use least amount of variables and statements, but performance matters.
Input:
- Bottles - 5,6,10,0
- BottleCapacity - 1
Output: 1.9 ltrs
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm
011: Using Nested Models in FastAPI - Python
This is the 11th video of the FastAPI series, a web framework for Python to create RestAPI's.
In our previous videos, we saw how to pass simple data types or a simple model as a parameter. In this video you will learn:
* How-to use List, Set & Dict provided by the Typing module.
* How-to pass deeply nested models as parameters
#video #videotutorial #python #FastAPI
This is the 11th video of the FastAPI series, a web framework for Python to create RestAPI's.
In our previous videos, we saw how to pass simple data types or a simple model as a parameter. In this video you will learn:
* How-to use List, Set & Dict provided by the Typing module.
* How-to pass deeply nested models as parameters
#video #videotutorial #python #FastAPI
YouTube
011: Using Nested Models in FastAPI - Python
For more Video Tutorials: https://www.youtube.com/c/Ignani?sub_confirmation=1 For resources on Python here: https://t.me/joinchat/AAAAAFRTkvlaUGTEbJ5m1g This...
Natural Language Processing with Python
– Analyzing Text with the Natural Language Toolkit
Steven Bird, Ewan Klein, and Edward Loper
This version of the NLTK book is updated for Python 3 and NLTK 3.
#python #eBook #NLTK #naturalLanguageProcessing
– Analyzing Text with the Natural Language Toolkit
Steven Bird, Ewan Klein, and Edward Loper
This version of the NLTK book is updated for Python 3 and NLTK 3.
#python #eBook #NLTK #naturalLanguageProcessing
Forwarded from Python Projects
#PracticeCode: 0009
Task:
Given a numerical array. Check if there are two such numbers in the array, multiplying which we get the given number X.
Array: [1, 2, 3, 4, 5, 6] Input: 10 --- Output: (2,5) Input: 12 --- Output: (2,6),(3,4)
Come up with an optimal algorithm and implement it. Use least amount of variables and statements, but performance matters.
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm
Task:
Given a numerical array. Check if there are two such numbers in the array, multiplying which we get the given number X.
Array: [1, 2, 3, 4, 5, 6] Input: 10 --- Output: (2,5) Input: 12 --- Output: (2,6),(3,4)
Come up with an optimal algorithm and implement it. Use least amount of variables and statements, but performance matters.
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm
Forwarded from Python Projects
#PracticeCode: 0010
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
You are a hard working child but you lack sleep 'cause of being busy with work. You can only sleep when you are off working day or you are on holidays.
You have to create a program that you get to sleep(return True) if you are on holidays or you are off from working day.
Example:
Input: Working=True , Holiday=False
Output: False
Input: Working=False , Holiday=False
Output: True
Input: Working=False , Holiday=True
Output: True
««« Send your solution to @hbabureddy and will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
You are a hard working child but you lack sleep 'cause of being busy with work. You can only sleep when you are off working day or you are on holidays.
You have to create a program that you get to sleep(return True) if you are on holidays or you are off from working day.
Example:
Input: Working=True , Holiday=False
Output: False
Input: Working=False , Holiday=False
Output: True
Input: Working=False , Holiday=True
Output: True
««« Send your solution to @hbabureddy and will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm
Forwarded from Python Questions
Anonymous Quiz
10%
100
23%
200
19%
300
48%
Error
Forwarded from Python Projects
***
📝 Solution for the Task: 0002 📌
You can find the solution for this on our github page .... CLICK HERE
📝 Solution for the Task: 0002 📌
You can find the solution for this on our github page .... CLICK HERE
GitHub
LearnPython/Tasks/0002.ipynb at master · ignani/LearnPython
Source Code and Samples from the tutorial videos. Contribute to ignani/LearnPython development by creating an account on GitHub.
Forwarded from Python Projects
***
📝 Solution for the Task: 0003 📌
You can find the solution for this on our github page .... CLICK HERE
📝 Solution for the Task: 0003 📌
You can find the solution for this on our github page .... CLICK HERE
GitHub
LearnPython/Tasks/0003.ipynb at master · ignani/LearnPython
Source Code and Samples from the tutorial videos. Contribute to ignani/LearnPython development by creating an account on GitHub.
Forwarded from Python Questions
Forwarded from Python Questions
#answer to the question 👆is ————-»»» class float
Since the result of 1/2 is 0.5, which is a float.
65% got it correct.
Since the result of 1/2 is 0.5, which is a float.
65% got it correct.
Forwarded from Python Questions
#answer to the question 👆is ————-»»» b) hello world!
the keyword argument sep by default is set to a single space " ", hence it add's a space inbetween the two words.
50% have answered it correct.
the keyword argument sep by default is set to a single space " ", hence it add's a space inbetween the two words.
50% have answered it correct.
Forwarded from Python Projects
#PracticeCode: 0012
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
You have to create a program which returns sum of given two input values but if given
values are same , than return double of their sum.
Example:
input = (1, 2)
output → 3
input = (3, 2)
output → 5
input = (2, 2)
output → 8
««« Send your solution to @hbabureddy and will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
You have to create a program which returns sum of given two input values but if given
values are same , than return double of their sum.
Example:
input = (1, 2)
output → 3
input = (3, 2)
output → 5
input = (2, 2)
output → 8
««« Send your solution to @hbabureddy and will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm