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
Forwarded from Python Projects
#PracticeCode: 0022
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
Create a program in which a list is given as input and you have to find max number
and change each element of list into max element.
input - [1,2,3,4,5]
output - [5,5,5,5,5]
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:
Create a program in which a list is given as input and you have to find max number
and change each element of list into max element.
input - [1,2,3,4,5]
output - [5,5,5,5,5]
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
Forwarded from Python Questions
In Python, functions can also have attributes and methods.
Anonymous Quiz
11%
Only Attributes
7%
Only Methods
79%
Both Attribures & Methods
3%
None