Forwarded from Python Projects
***
📝 Solution for the Task: 0004 📌
You can find the solution for this on our github page .... CLICK HERE
📝 Solution for the Task: 0004 📌
You can find the solution for this on our github page .... CLICK HERE
GitHub
LearnPython/Tasks/0004.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
Given a function that does not return any value, what value is shown when executed at the shell?
Anonymous Quiz
8%
Int
6%
Float
11%
bool
36%
void
39%
None
Forwarded from Python Questions
What is the optput of the expression
1 + 2 ** 3 * 4
Explain why?
1 + 2 ** 3 * 4
Explain why?
Anonymous Quiz
52%
33
12%
36
14%
108
15%
4097
7%
531441
Forwarded from Python Questions
Which function is to be used to print to console?
Anonymous Quiz
16%
printf()
28%
console.out()
50%
print()
4%
log()
2%
write()
Forwarded from Python Projects
#PracticeCode: 0016
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
You have to create a program where you have to print first 3 letters of a the given word 3 times.
If the given input is less then 3 tham print it 3 times as well.
input - 'Python'
output - 'PytPytPyt'
input - 'Ad'
output - 'AdAdAd'
GOOD LUCK!
««« 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 where you have to print first 3 letters of a the given word 3 times.
If the given input is less then 3 tham print it 3 times as well.
input - 'Python'
output - 'PytPytPyt'
input - 'Ad'
output - 'AdAdAd'
GOOD LUCK!
««« 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 Projects
#PracticeCode: 0017
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
You have to create a program in which the given string is printed with first and last character
exchanged.
NOTE: You don't have to reverse whole string!
example:
input - "Python"
output - "nythoP"
GOOD LUCK!
««« 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 in which the given string is printed with first and last character
exchanged.
NOTE: You don't have to reverse whole string!
example:
input - "Python"
output - "nythoP"
GOOD LUCK!
««« 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
What is output of the following code?
a = ['he', 'she', 'we']
' '.join(a)
a = ['he', 'she', 'we']
' '.join(a)
Anonymous Quiz
43%
'heshewe'
15%
'he,she,we'
26%
'he she we'
16%
error
012 : Using Special Datatypes In FastAPI - Python
This is the 12th 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 like string, int, float and we also tried with special datatype httpurl. In this video, I will be covering a few more of these:
* Datetime, Date, Time & Timedelta
* Color type
* PaymentCardNumber & PaymentCardBrand
#video #videotutorial #python #FastAPI
This is the 12th 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 like string, int, float and we also tried with special datatype httpurl. In this video, I will be covering a few more of these:
* Datetime, Date, Time & Timedelta
* Color type
* PaymentCardNumber & PaymentCardBrand
#video #videotutorial #python #FastAPI
YouTube
012 : Using Special Datatypes 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...
Forwarded from Python Questions
Which of the following is correct about Python?
Anonymous Quiz
12%
It can be easily integrated with C, C++, COM, ActiveX, CORBA, and Java
18%
It supports automatic garbage collection.
61%
All above
9%
None of the above
Forwarded from Python Questions
Forwarded from Python Projects
#PracticeCode: 0018
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
You have to create a program which takes input as two arguments where one will be string and the other a positve int.
Now you have to print output first 3 charachters of the given string the times the value is given as input.
sample:
input - ("Chocolate", 2)
output - 'ChoCho'
input - ("Python",3)
output - 'PytPytPyt'
GOOD LUCK!
««« Send your solution to @hbabureddy and will be added to our Github page »»»
««« Click here for the Solution »»»
(https://github.com/ignani/LearnPython/blob/master/Tasks/0017.ipynb)🔥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 takes input as two arguments where one will be string and the other a positve int.
Now you have to print output first 3 charachters of the given string the times the value is given as input.
sample:
input - ("Chocolate", 2)
output - 'ChoCho'
input - ("Python",3)
output - 'PytPytPyt'
GOOD LUCK!
««« Send your solution to @hbabureddy and will be added to our Github page »»»
««« Click here for the Solution »»»
(https://github.com/ignani/LearnPython/blob/master/Tasks/0017.ipynb)🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm
Forwarded from Python Questions
What is output of following code?
x = (5, 7)
x[0] +=3
x = (5, 7)
x[0] +=3
Anonymous Quiz
4%
7
37%
(8,7)
26%
Type Error
23%
Syntax Error
10%
(5,7), nothing changes
Forwarded from Python Projects
#PracticeCode: 0019
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
You have to create a program in which two strings is a given as input and you have to give output number of strings getting matched in both strings.
sample:
input - "Abc","Abc"
ouput - 2
input - "abc","axc"
output - 0
GOOD LUCK!
««« 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 in which two strings is a given as input and you have to give output number of strings getting matched in both strings.
sample:
input - "Abc","Abc"
ouput - 2
input - "abc","axc"
output - 0
GOOD LUCK!
««« 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 Projects
#PracticeCode: 0020
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
You have to create a program in which two input has to be taken 1st bracket string
with size 4 two open and two close like (()) , {{}} etc.. and 2nd input ,a word.
Now you have to print the word enclosing it within given brackets.
Sample Run :
input - '(())' , 'Python'
output - '((Python))'
NOTE : You to make this program without using loops.
GOOD LUCK!
««« 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 in which two input has to be taken 1st bracket string
with size 4 two open and two close like (()) , {{}} etc.. and 2nd input ,a word.
Now you have to print the word enclosing it within given brackets.
Sample Run :
input - '(())' , 'Python'
output - '((Python))'
NOTE : You to make this program without using loops.
GOOD LUCK!
««« 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 JK - Python
mementopython3-english.pdf
242.7 KB
Forwarded from Python Questions
Forwarded from Python Projects
#PracticeCode: 0021
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
You have to create a program in which a list of numbers are given and you to print
the list shifted left by one step.
Sample:
input - [1,2,3,4]
output - [2,3,4,1]
NOTE :- Without loop!
GOOD LUCK!
««« 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 in which a list of numbers are given and you to print
the list shifted left by one step.
Sample:
input - [1,2,3,4]
output - [2,3,4,1]
NOTE :- Without loop!
GOOD LUCK!
««« 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