Python Resources - Basic Python, ML, DataScience, BigData
2.46K subscribers
14 photos
3 files
243 links
You can find all kinds of resources related to Python, ML, DataScience and BigData.
Resources — »»» @python_resources_iGnani
Projects — »»» @python_projects_repository
Questions— »»» @python_interview_questions
Forum — »»» @python_programmers_club
Download Telegram
Forwarded from Python Projects
#PracticeCode: 0035
🎯 FORWARD IF YOU LIKE IT 🎯

Task:
You have to create a program in which you have to take input in a temperature [ In Celsius, Fahrenheit or Kelvin anyone]. And convert it into other both types and print.

{C = 5/9*(F-32) , C = K - 273, where F is Fahrenheit , C is Celsius, K is Kelvin}

Sample run :-

input → 60°C
output → 140 Fahrenheit , 333 Kelvin

GOOD LUCK!

««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»

««« Click here for the Solution »»»

🔥Ready to take this challenge? 🔥

#python #practiceCode #samples #interviewQuestions #conditions
002 : FastAPI - Getting Started - Python

🌟

Getting Started with FastAPI.
This video show you on how to get started in building a simple FastAPI based RestAPI application in Python. It covers
* Install fastapi, and a ASGI server such as uvicorn
* Create our good old Hello World sample using FastAPI
* Running the application in dev mode using both through command line and PyCharm.
* Finally browsing the RestAPI that we created and also checking out the OpenAPI documents that were generated automatically for us.

#python #restapi #webFramework #FastAPI #tutorial #videotutorial
Forwarded from Python Questions
y, z = 10, 15
y *= y + z
# What is the value of y. Explain How?
Anonymous Quiz
5%
10
5%
15
15%
25
21%
115
44%
250
5%
None of the above
6%
Show me the answer
Forwarded from Python Questions
#interviewQuestions : 0011

Q: Explain the following assignment?

x, y, z = 5, 10, 15
a = b = c = 0

a = x - z
x -= z

b = y - y + z
y -= (y + z)
print(b, y)

15 -15

Notice
the result in the here, it should be 15 and 15, but the value of y is -15.
Do you know why?
When the statements are evaluated, the statements are evaluated from left to right. But before that, anything within the braces are executed first.

So, in the first statement, since there is no curly braces, it first executes y - y and the result + z, this becomes 15
In the second statement, the expression within curly braces is executed, which is y + z, which comes to 50 and then now the expression becomes y -= 50, which is same as y = y- 50, hence the result -15.
Forwarded from Python Questions
#interviewQuestions : 0012

What is PYTHONPATH?

PYTHONPATH is an environment variable can be set, to add additional directories where python will look for modules and packages.

Whenever a module is imported, PYTHONPATH is also looked up to check for the presence of the imported modules in various directories. The interpreter uses it to determine which module to load.

For most installations, you should not set these variables since they are not needed for Python to run. Python knows where to find its standard library.

The only reason to set PYTHONPATH is to maintain directories of custom Python libraries that you do not want to install in the global default location (i.e., the site-packages directory).
Forwarded from Python Questions
#interviewQuestions : 0013

What are python modules?

Python modules are files containing Python code.

A module can define functions, classes and variables. A module can also include runnable code. Grouping related code into a module makes the code easier to understand and use.
Forwarded from Python Questions
x = [3,1,2]
What is the output of x [1:-1]? Explain Why?
Anonymous Quiz
13%
3,1,2
13%
3,1
30%
1,2
28%
1
10%
None of the above
6%
Show me the answer
Forwarded from Python Questions
Which of the following programming styles does Python support?
Anonymous Quiz
7%
Functional
9%
Procedural
30%
Object Oriented
51%
All of the above
4%
Show me the answer
Forwarded from Python Questions
print('abcefd'.replace('cd', '12'))

#What is the output of the above code?
Anonymous Quiz
28%
ab1ef2
14%
ab12ef12
4%
ab1efd
3%
abcef2
22%
abcefd
21%
None of the above
7%
Show me the answer
​​Papermill

Papermill is a tool for parameterizing, executing, and analyzing Jupyter Notebooks.

Papermill lets you:
* parameterize notebooks
* execute notebooks

This opens up new opportunities for how notebooks can be used. For example:
* Perhaps you have a financial report that you wish to run with different values on the first or last day of a month or at the beginning or end of the year, using parameters makes this task easier.
* Do you want to run a notebook and depending on its results, choose a particular notebook to run next? You can now programmatically execute a workflow without having to copy and paste from notebook to notebook manually.

#python #tools #papermill #jupyterNotebook
​​003 : FastAPI - Basics - Python

🌟

Getting Started with FastAPI.
 video takes you step by step in explaining the simplest FastAPI application that we created in our previous video.
- Import FastAPI.
- Create an app instance.
- A path operation decorator (like @app.get("/")).
- A path operation function - async def root()
- And finally Run the development server uvicorn from command line.

#python #restapi #webFramework #FastAPI #tutorial #videotutorial
Forwarded from Python Projects
#PracticeCode: 0039
🎯 FORWARD IF YOU LIKE IT 🎯

Task:
Create a program to input number of rows and coloumn and print a two-dimensional array.

Sample :-

input - rows = 2 , coloum = 2
output - [[0,1],[0,1]]

GOOD LUCK!

««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»

««« Click here for the Solution »»»

🔥Ready to take this challenge? 🔥

#python #practiceCode #samples #interviewQuestions #conditions
Forwarded from Python Questions
x = (round(4.5) - - round(-4.5))

# What is the value of x? Explain Why?
Anonymous Quiz
34%
0
13%
9
8%
-9
18%
8
4%
-8
14%
Syntax Error
8%
Show me the answer
Forwarded from Python Projects
Practice Code: 051

Write a program to return the sum of a series of sequential numbers. The sequence can be
a. 1,2,3,4,5.......n
b. 1,3,5,7,9,11,.....n
c. 2,4,6,8,10,12.....n
d. 35,42,49,56,63....n

Note: Do not use a loop to add the numbers, if that is what your idea is, not use a sum() or similar function to add them.

Write an algorithm that optimally finds the sum total.

««« Click here for solution »»»

🔥Ready to take this challenge? 🔥

#python #practiceCode #samples #interviewQuestions #numbers #algorithm
Forwarded from Python Questions
x = 5,000,000.00
type(x)
# What is the datatype of x? Explain Why?
Anonymous Quiz
5%
str
22%
int
53%
float
3%
list
8%
tuple
6%
Syntax Error
3%
Show me the answer