Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Some Code For a program
#3
Is something like this what you're looking for?

# INPUT WORD
x = input ("Insert Any Word : ")

# PRINTS NUMBER OF CHARACTERS
print(f"Number of characters: {len (x)}")

# PRINTS BACKWARDS VALUE OF X
b = x [::-1]
print (f"Backwards its' : {b}.")

# PALENDROME STATUS
if b == x : p = 'is'
else : p = 'is not'
print (f"This word {p} a palendrome.")
Reply


Messages In This Thread
Some Code For a program - by PythonCodeMaker_119 - Apr-14-2021, 07:26 PM
RE: Some Code For a program - by Yoriz - Apr-14-2021, 07:30 PM
RE: Some Code For a program - by BashBedlam - Apr-14-2021, 08:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Modify code from running program ? samuelbachorik 2 2,472 Jun-26-2020, 08:17 PM
Last Post: samuelbachorik
  program exited with code: -1073740791 RegiMental 2 5,234 Dec-18-2019, 01:35 AM
Last Post: Clunk_Head
  How ad key unlocker program to code? storzo 8 3,589 Sep-04-2019, 11:55 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020