I am almost 40 years old - which means I'm literally from the old school. So when I set about to create my first SSIS package I wanted to do "Hello World!"
In other words, I wanted to define some variables, have the package set those variables and prove to me I had set them. I wasn't able to find anything out there telling me how to do this. I eventually figured it out.
This is how I did it...
We'll approach the task in two phases. I'm calling them phases in order to avoid calling them jobs, tasks or steps - which all have their specific SSIS and SQL Server meanings well defined.
In phase 1 we'll create a variable and present it's value through a message box.
PHASE ONE:
1) Create a project in Visual Studio.
2) Right-click in any blank area on the control pane and choose "Variables" (4th item down). This makes the Variables area show up in a left-side of screen, vertical pane.

3) Click the "Add Variable" button. Name the variable something, set the data type to String and put "Hello World!" or "I ROCK SSIS" into the value field.

4) In the Toolbox, find the Script Task and drag one onto the Control Flow pane.

5) Double-click on the Script Task to open it. On the General "tab" you can change the name if you want. On the Script "tab" set the "PrecompileScriptIntoBinaryCode" property to false. Type the name of your variable into the "ReadOnlyVariables" field and click the "Design Script" button.

6) Type one line into the code area - using the Message Box function...
MsgBox(DTS.Variables("myVar").Value.ToString())

7) Save your way back out the main screen.
8) Right-click on your script task (maybe you renamed it?) and choose "Execute".

The task should turn Yellow, then a message box should pop up, which you will need to dismiss, then it will turn Green.

If it hangs on yellow, look for a message box that may be hidden under your Visual Studio screen. If it hangs too long, just click "Stop" (a blue box in the menu bars along the top). Actually, you'll need to click stop to get back to dev mode anyway.
So that completes the first phase of this little walk-through. You set up a variable and confirmed it's value programmatically. This may seem like a task that will quickly become irrelevant to you but I put one of these confirmation steps in all my packages. After I feel a certain level of confidence, I disable the step and only use it when I am troubleshooting, but it's nice to have them in there. And with SSIS (as opposed to DTS) you can disable a task in line and the package will hop right over it and continue on it's merry way - so these confirmation tasks are easy to develop and convenient to switch off and on.
PHASE 2 is posted
here.