Program to print characters at odd and even position for the given String in python.

Опубликовано: 22 Октябрь 2024
на канале: DevOps Rulers
2,708
22

String: Any sequence of character within single quote or double quote is considered as string.

len() is in-built function: We can use len() function to find the number of characters present in the string.

Python String split() Method The split() method splits a string into a list.
You can specify the separator, default separator is any whitespace.

Write a program to print characters at odd position and even position for the given String?

Way Frist:

Way Second:

Thank you for Watching

#python #programming #coding #programmer #developer #code #software #tech #pythonproblem