r/studyupdate • • Jun 09 '26

Practising python Day 1

Post image

First day of learning python hands on with solving string question. My goal is to learn to get familiywith python so I can do stuff in Data Science and Machine Learning.

82 Upvotes

38 comments sorted by

View all comments

2

u/Flame77ofc Jun 13 '26 edited Jun 13 '26
string = input("your string: ")
res = string == string[::-1]
print("is palindrome" if res else "is not palindrome")

1

u/Spicoder Jun 13 '26

console.log.... really?!

class Console:
  @staticmethod
  def log(*args):
    print(*args)

console = Console()

console.log("Hello", 123)