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 Introducing Lists Build an Application Display the List

Gundalai Dagvasuren
Gundalai Dagvasuren
717 Points

This is outside the class topic, but how can I delete an entire row or line in the code like you?

I select all of them and delete them. But you were deleting a comment with one click.

1 Answer

Rohald van Merode
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Rohald van Merode
Treehouse Staff

Hey Gundalai Dagvasuren 👋

You can delete the line where your cursor is currently located by using the shortcut ⇧ ⌘ D on Mac, or shift + ctrl + D on Windows 🙂 There are a couple of handy shortcuts available in Workspaces which you can find in the Edit menu up at the top of the Workspace.

Hope this helps! 😃