Learn String Manipulation by Building a Cipher - Step 16

Tell us what’s happening:

How do I print the index variable to the console? What is the console? The black screen?

Your code so far


# User Editable Region

text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
index = alphabet.find(text[0])

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 16

Hi there and welcome to our community!

Yes, there is an integrated console (black screen) which you can print to. It’s a very useful debugging tool to use the console to check values and see what your functions are returning, so that you can see what’s going in on your code.
You simply use the print() command to print to the console. Whatever you put inside the parentheses will be printed.

1 Like