.include?


#1

Hi, i can't find a way to pass this ,don't know what's wrong .. I need to find a under string? "s" in the user's text.
my code:

print "Film" 
user_input = gets.chomp
 user_input.downcase!
if user_input.include? "s" 
print "false" 
end

the return of the code :
Film Planete des singes falsenil
still not working :frowning:


#2

Please post a link to the exact exercise. May I take it this is the French language module?

I ran this code just to see what the output would be:

print "Film" 
user_input = gets.chomp
user_input.downcase!
puts user_input
if user_input.include? "s" 
  print true 
end

Console

> Film
Movies
movies
true
=> nil


#3

link

Yes my module is in French, i have the same answers that you have but my module is still stuck
if i write South seas i get
Film South seas
south seas
truenil

Then, error message ( Oups, merci de réessayer. Appelez .includes? sur la saisie. )


#4

Post the link to the lesson, please.


#5

https://www.codecademy.com/fr/courses/ruby-beginner-fr-FR-3un53/0/4?curriculum_id=535e93005d81962043000001


#6

print "Film" 
saisie = gets.chomp
saisie.downcase!
if saisie.include? "s" 
  print true 
end

#7

Thought i had to code in english only ._.
it worked thanks a lot !


#8

In a few rare instances the English code will pass but in most cases, the French names are expected as given in the instructions.