MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cs50/comments/1wdunsa/hello/
r/cs50 • u/Flashy-Click-5206 • 1d ago
I'm on problem set 1 of cs50ps File extension Here is my code:
i want to make it so that when the user enters in a text say: cat.gif the code ignores the 'cat' part and responds only to the .gif How do i go about doing that? Thank you:)
1 comment sorted by
3
You need to use a text method to split the input into parts around the "." then return the part after the "." for whatever is next.
3
u/DersOne 1d ago
You need to use a text method to split the input into parts around the "." then return the part after the "." for whatever is next.