Forwarded from Python Questions
*
myList = [1, 2, 3, 4, 2, 2, 3, 1, 4, 4, 4,5,5,6,7,6,5]
A) Write a program to get the value that appears more number of times
B) When there is a tie, then get the number which is the smallest of them
#python #practiceCode #samples #interviewQuestions #numbers #list
myList = [1, 2, 3, 4, 2, 2, 3, 1, 4, 4, 4,5,5,6,7,6,5]
A) Write a program to get the value that appears more number of times
B) When there is a tie, then get the number which is the smallest of them
#python #practiceCode #samples #interviewQuestions #numbers #list
Forwarded from Python Questions
# Sequence Puzzle
[30, 9, 40, 50, 91, 142, 234, ?] Find the next value?
[30, 9, 40, 50, 91, 142, 234, ?] Find the next value?
Anonymous Poll
17%
276
16%
277
22%
334
17%
376
28%
377
Forwarded from Python Projects
Typing Speed Test – Build your first game in Python
In this Python project idea, we are going to build an exciting project through which you can check and even improve your typing speed. For a graphical user interface, we are going to use the pygame library which is used for working with graphics. We will draw the images and text to be displayed on the screen.
#python #sourceCode #sampleCode #project #pygame
In this Python project idea, we are going to build an exciting project through which you can check and even improve your typing speed. For a graphical user interface, we are going to use the pygame library which is used for working with graphics. We will draw the images and text to be displayed on the screen.
#python #sourceCode #sampleCode #project #pygame
TechVidvan
Python Project on Typing Speed Test - Build your first game in Python - TechVidvan
Python project on wpm test - Learn to build an application using pygame library that will detect your typing speed and help you to improve it.
Forwarded from Python Questions
*
name = 'ppy!'
Write code to insert the letter 'a' in-between each letter to form the word 'papaya!'
#python #practiceCode #samples #interviewQuestions #strings #list
name = 'ppy!'
Write code to insert the letter 'a' in-between each letter to form the word 'papaya!'
#python #practiceCode #samples #interviewQuestions #strings #list
Forwarded from Python Questions
.
a = 1
b = 2
Swap the values without using an additional variable.
#python #practiceCode #samples #interviewQuestions
a = 1
b = 2
Swap the values without using an additional variable.
#python #practiceCode #samples #interviewQuestions
Forwarded from Python Questions
Forwarded from Python Questions
x = [3,1,2]
What is the output of x [1:]?
What is the output of x [1:]?
Anonymous Poll
9%
3,1,2
8%
3,1
76%
1,2
8%
None of the above
—-
Live training at 3.30 PM today, join me and will answer your questions directly.
https://youtu.be/Dr2Hl_tyQw4
Live training at 3.30 PM today, join me and will answer your questions directly.
https://youtu.be/Dr2Hl_tyQw4
YouTube
009: Multiple Request Body Parameters In FastAPI - Python
This 9th video of the FastAPI series, a web framework for Python to create RestAPI's. Last 2 videos covered String and Numeric validations. We have also seen...
Forwarded from Python Projects
Practice Code: 003
In an array, that has been sorted in ascending order, but has been cyclically shifted, find the element that has the minimum element.
Example, [5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4]
Write an algorithm that optimally finds the minimum element in such an array.
««« Click here for solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #numbers #algorithm
In an array, that has been sorted in ascending order, but has been cyclically shifted, find the element that has the minimum element.
Example, [5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4]
Write an algorithm that optimally finds the minimum element in such an array.
««« Click here for solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #numbers #algorithm
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.
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