Slicing in Python Example | Python Tutorial for Beginners in Hindi
ฝัง
- เผยแพร่เมื่อ 20 ก.ย. 2024
- Slicing in Python Example | Python Tutorial for Beginners in Hindi
This video is a part of python tutorial in hindi series. In this video, we will
see tricky slicing example with proper explanation
deep copy and shallow copy:- • Deep Copy and Shallow ...
anaconda distribution:-
walrus operator in python:- • Walrus Operator in Pyt...
bitwise operators in python:- • Bitwise Operators in P...
python 10 tricky questions:- • Python Interview Quest...
slicing in python :- • Slicing in Python | St...
disadvantages of python:- • Disadvantages of Pytho...
PDBC:- • Python - MySQL Tutoria...
Creating connection between python mysql:- • PDBC Tutorial | Python...
with statement in python :- • with Statement in Pyth...
json in python :- • PDBC Tutorial | Python...
for vs while:- • When to Use for and wh...
fetchall :- • Python MySQL Tutorial ...
create table:- • How to Create Table in...
create connection:- • Python - MySQL Tutoria...
install mysql:- • How to Install MySQL o...
close file:- • File Handling in Pytho...
exception handling :- • Exception handling in ...
OOP:- • Object Oriented Progra...
MYSQL:- • SQL Tutorial for Begin...
file handling tutorial:- • Exception handling in ...
multithreading in python :- • Multithreading in Pyth...
race condition video:-
oop :- • Object Oriented Progra...
multithreading in python :- • Multithreading in Pyth...
lock mechanism theory:- • Lock in Multithreading...
race condition:- • Video -k
exception handling python:- • Exception handling in ...
Constructor in python:- • Object Oriented Progra...
Object oriented programming in python playlist:- • Object Oriented Progra...
source code :-
About Python Tutorial:- python for beginners-Go from Zero to Hero in python.This tutorial includes python programming videos from basics to advanced
master in python:- bit.ly/392NTMq
More tutorials:-
file handling in python:- bit.ly/3nBEW5c
string in python:- bit.ly/3lnygFc
About codeyug :-
Codeyug provides tutorials for building your programming skills.Here,you will learn various programming languages,computer science,web development with free of cost.
learn from codeyug:- bit.ly/3h3Bv0c
SHARE | SUBSCRIBE | LIKE
-- - - - - - - - - - - - - - - - - -Thanks for watching this video - - - - - - - - - - - - - - - - - -- -
Our social links:-
you tube:- bit.ly/3h3Bv0c
instagram:- bit.ly/3mlspQu
gmail :- shantanukejkar@gmail.com
creator:-
$ -shantanu kejkar -$
About me:- shorturl.at/nCOU9
#python #python3 #programming #codeyug #tutorial #coding
Learning something new is always special..Thanks
Kya aap python web development ke project pe video bana sakate hai?? Ek 3 tier application honi chahiye, jisme front end html, css, javascript me ho.. dijango/flask koi bhi framework ho and backend python me hona chahiye.. please
THANKS FOR ANSWERING MY QUESTION
Hope your doubt is cleared..
@@Codeyug yes
Sir , I have a doubt
What is the default stop value for negative step value?
Please suggest me roadmap for python advance.
Input : 'sp#@ert*%q'
Output: 'qt#@rep*%s'
How to solve this question where alphabets will reverse but symbol remain on same place
import string
alphabet = list(string.ascii_lowercase) #[a,b,c.....z]
mystring = 'sp#@ert*%q'
string_list = list(mystring) #['s', 'p', '#', '@', 'e', 'r', 't', '*', '%', 'q']
left = 0
right = len(string_list)-1
while left < right:
if string_list[left] in alphabet and string_list[right] in alphabet:
string_list[left],string_list[right] = string_list[right],string_list[left]
right -= 1
left += 1
elif string_list[left] in alphabet and string_list[right] not in alphabet:
right -= 1
elif string_list[left] not in alphabet and string_list[right] in alphabet:
left += 1
else:
right -= 1
left += 1
print(''.join(string_list))
Hope this helps!
@@Shantanu_lrnr Thankyou for providing the solution ! It's working 👍
@@sonamporwal925 👍👍
list = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
def text_manipulate(text, manipulate_amount, direction):
new_text = ""
if direction == "decrypt":
manipulate_amount = manipulate_amount * (-1)
for letter in text:
if letter in list:
old_position = list.index(letter)
new_position = old_position + manipulate_amount
new_text = new_text + list[new_position]
else:
new_text = new_text + letter
return print(f"The {direction}d result: {new_text}")
direction = input("Type 'encrypt' to encrypt, type 'decrypt' to decrypt:
")
text = input("Type your message:
").lower()
manipulate_amount = int(input("Type the shift number:
"))
manipulate_amount = manipulate_amount % 26
text_manipulate(text, manipulate_amount, direction)
how are you sir , iska reverse karna hai lekin 1step chor ke 1step ( how era you ris ) interviw me puchata muje , iska easy se easy way batayiye sir
mystring = 'how are you sir'
string_list = mystring.split()
mylist = [word if word == string_list[0] else word[::-1] for word in string_list]
print(' '.join(mylist))
Hope this helps!
@@Shantanu_lrnr thank you
@@aarizmansuri-g8p 👍👍
@@aarizmansuri-g8p👍👍
@@aarizmansuri-g8p 👍👍