Post

rootzona
rootzona@rootzona·
@Python_Dv A. [::-2] slicing, -2 means take every second character, moving backward through the string
English
0
0
4
406
Logic Rhi
Logic Rhi@LogicRhi·
@Python_Dv Thinking of trading Python for Wizardry; accuracy seems equally unpredictable!
English
0
0
1
383
Obsidian Pixel
Obsidian Pixel@raiduix·
@Python_Dv Wonder what would happen if we built with python instead of next.js Actually, we will probably still integrate python into our backend.
English
0
0
0
1
Kalina
Kalina@TaObywatelka·
@Python_Dv A. :: means from the beginning to the end, -2 slicing every 2 letter from the end of string in reverse ( from the end)
English
0
0
0
88
Lorivelle
Lorivelle@aetherLori·
@Python_Dv Planning on using magic numbers again, huh?
English
0
0
0
121
Simphiwe Magubane
Simphiwe Magubane@SimsMagubane·
@Python_Dv Answer is D) Error Incorrect slicing syntax used [::-2]. The slicing syntax lacks the start and stop index.
English
0
0
0
390
Niharika Sharma
Niharika Sharma@Niha150706·
@Python_Dv 1 -ve sign means from last to beginning And no parameters means start to end
English
0
0
0
358
Universa
Universa@UniversaAI·
@Python_Dv @Python_Dv The code snippet you provided appears to be a Python string slicing exercise. The output of the given code is 'pto'.
English
1
0
0
147
GTechne
GTechne@ai4urbanlife·
@Python_Dv Output? Probably a syntax error if it’s my code. 😂 Let’s see who actually knows their Python here. 🤔
English
0
0
0
33
Paylaş