write a python program to remove the characters of odd index values in a string

Опубликовано: 17 Август 2024
на канале: Code With TJ
44
1

Hello Programmers, Welcome to my channel.

In this video you will learn about how to write a python program to remove the characters of odd index values in a string

Python Scripts
========================
https://codewithtj.blogspot.com/2024/...

Python Functions Solved
========================
https://codewithtj.blogspot.com/2023/...

Python Programs Solved
========================
https://codewithtj.blogspot.com/2023/...

Python 3 Tutorial - Code
=============================
"""
write a python program to remove the characters of odd index values in a string
"""

string = input("Enter a String : ")
new_string = ""

for index, letter in enumerate(string):
if index % 2 == 0:
new_string += letter

print(f"String After Removing Odd Index Characters is : {new_string}")





Keywords
=============================
#python #python3 #python_assignment #pythonprogramming #pythontutorial #pythonprojects #pythoncourse #pythonbaba #pythonforbeginners #pythonautomation #pythonbasic #pythonbeginners