Post

Python Developer
Python Developer@Python_Dv·
Comment below the output! 😃👇
Python Developer tweet media
English
35
8
90
16.7K
Sergei Kotov
Sergei Kotov@kotov_dev·
@Python_Dv Answer: e) PytnuF Slicing + reversing combo! › "Python"[0:3] = "Pyt" (first 3 chars) › "Fun"[::-1] = "nuF" (reversed) › "Pyt" + "nuF" = "PytnuF" For beginners: [::-1] reverses any sequence! Works on strings, lists, tuples. Super useful trick!
English
0
0
5
706
Kamal Gurjar
Kamal Gurjar@KamalGurjar8·
@Python_Dv Output: e) PytnuF "Python"[0:3] → Pyt "Fun"[::-1] → nuF Concatenation → PytnuF
Dansk
1
0
3
889
Earnest Codes
Earnest Codes@Earnesto037·
@Python_Dv Answer: e) PytnuF The expression print("Python" [0:3] + "Fun"[::-1]) combines two string operations: "Python"[0:3] performs string slicing, extracting characters from index 0 up to (but not including) index 3, resulting in the substring "Pyt". "Fun"[::-1] uses extended slicing
English
1
0
3
1.2K
Othieno Michael Edwards
Othieno Michael Edwards@EdwardsOthieno·
@Python_Dv 1. Slicing and string concatenation concepts 2. "Python"[0:3] extracts from index 0(P) - index 2(t) = "Pyt" 3. "Fun"[::-1] reverses the string = "nuF" 4. "Pyt" + "nuF" performs string concatenation resulting to PytnuF
English
0
0
2
344
Sunny Singh
Sunny Singh@imthesunnym·
@Python_Dv Explanation (short & clear): e "Python"[0:3] → Pyt "Fun"[::-1] → nuF Final Output → PytnuF
Deutsch
0
0
1
1
joeybuilds
joeybuilds@joeybuilds_·
@Python_Dv Okey it start on 0 index then stops at 3 which h and the the fun string is reversed cause -1 Output :pytnuf
English
1
0
0
73
Aninda-Tech Learner
Aninda-Tech Learner@devwithaninda·
@Python_Dv e.pytnuf string + reverse slicing in one line. 'pyt' from python and 'nuf' from reversed "fun"--pytnuf🔥🧠
Dansk
0
0
0
4
Firdaush Hassan Sheikh
Firdaush Hassan Sheikh@FirdaushHassan·
@Python_Dv d)pyth nuf Explanation: The slicing of python from 0 index to 3 index will give output of pyth... And the slicing of fun from 0 index to -1 index(Reversing) will give output of nuf..
English
0
0
0
0
Himanshu
Himanshu@himanshu0Eight6·
@Python_Dv The Output will print pytnuF option E slicing from 0th till 2nd index followed by reversal of string #python
English
0
0
0
7
dyinks
dyinks@_kunbility·
@Python_Dv Option E String Slicing "Python"[0:3] = ( n+1)items pyt "Fun"[::-1] = reverse nuF Concatenation = PytnuF
Dansk
0
0
0
311
Paylaş