0

I need help with a task:

For example, given the input:

doubloons

your program should output:

Yarrrrrrr

I don't know how to do the python script. I have never done Python before.

Cohen

4
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by leegeorg07
0

Python is the easiest and most powerful language around! You should really make an attempt to start learning it! :)
Anyways:

s=raw_input("Please enter a word/sentence: ")
if(s=="doubloons"):
    print("Yarrrrrrr")
0

@sravan hey, i think that cohen is probably using python3.1 but for versions previous to python3 yours would work better

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.