Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Basics Functions and Looping Functions

Georgios Vivilakis
seal-mask
.a{fill-rule:evenodd;}techdegree
Georgios Vivilakis
Python Development Techdegree Student 3,020 Points

Why does my function output text don't paste?

def yell(text):
    text = text.upper()
    number_of_characters = len(text)
    result = text + "!" * (number_of_characters // 4)
    print(result)

yell = "Let's test your skills"
yell = "I suggest you practice harder"
yell = "Don't be afraid to fail"

2 Answers

Tate Price
PLUS
Tate Price
Courses Plus Student 9,987 Points

some options could be:

  1. The execution console where it says (" Treehouse:~/Workspace$") does not allow for pasting into it.

  2. workspace error. Try closing and opening workspace again

  3. If you are in the top half of the screen then you should verify that you are highlighting the code, pressing ctrl + c to copy, then pressing ctrl + v to paste, otherwise, you can use the manual function by right-clicking with the mouse

Steven Parker
Steven Parker
231,236 Points

Perhaps your clipboard is empty. If you're using the workspace, the console pane does not respond to the typical Ctrl-C shortcut to copy highlighted content. But after highlighting what you want, you can copy it using the "copy" selection of the "edit" drop-down on the menu bar.