Https://www.codecademy.com/courses/learn-python-3/informationals/python3-coded-communication

https://www.codecademy.com/practice/tracks/learn-python-3/modules/learn-python3-modules

hello people :slight_smile: I’m a newbie here and this may be a silly question for all of y’all but… Im stuck at one of the practice exercises for python, the prompt below asks this:
Import the is_palindrome() function from the fun_with_strings.py file.

my code is this (and it doesnt work)

from fun_with_strings as fws
fws.is_palindrome()
print(is_palindrome(“potato”))
print(is_palindrome(“stressed desserts”))

why it doesn’t work?

If the instructions say:

import the is_palindrome() function from the fun_with_strings.py file:
try:

from fun_with_strings import is_palindrome

I hope that helps!

1 Like

I tried your same code, the one I posted it was the wrong one I didn’t mean that… :S sorry! but now it works

thanks you and sorry for the silly question