Hello Programmers, Welcome to my channel.
In this video you will learn about how to Write a Python Program to Find the First Repeated Character in a Given String
Python Scripts
======================
https://codewithtj.blogspot.com/2024/...
Python Functions Solved
==========================
https://codewithtj.blogspot.com/2023/...
Python Programs Solved
============================
https://codewithtj.blogspot.com/2023/...
Code
=============================
my_string = input("Enter a string : ")
for index, letter1 in enumerate(my_string):
for letter2 in my_string[index+1:]:
if letter1 == letter2:
print("First Repeated Character is : ", letter1)
exit(0)
else:
print("String does not have repeated characters")
Keywords
=============================
#python #python3 #python_assignment #pythonprogramming #pythontutorial #pythonprojects #pythoncourse #pythonbaba #pythonforbeginners #pythonautomation #pythonbasic #pythonbeginners