This practice will be retired on May 31, 2020.
Challenge: A Swift Biography1:55 with Pasan Premaratne
Use basic concepts like constants and types to create a tiny biography
[MUSIC] 0:00 Hi, and welcome to your very first practice session. 0:04 Let's practice some basic swift to make sure that everything you've learned so 0:07 far sticks. 0:11 We'll review variables, as well as some basic data manipulation. 0:13 If you're not familiar with these topics, 0:17 check the teacher's notes attached to this video for links where you can learn more. 0:19 In this first exercise, we're going to ask you to build a Swift program 0:25 that creates a mini biography about yourself. 0:29 You'll enter some information and assign the data points to a set of constants, 0:33 then you'll use this information to create a biographical string. 0:38 This exercise combines several fundamental programming steps. 0:43 So, an example of what I'm looking for is a string like this at the end. 0:48 In the teacher's note section of this video, 0:53 there's a link to download a practicesession.playground file. 0:55 In this playground all the exercises for 0:59 this entire series are included as different playground pages. 1:02 This exercise is in a playground page named, A Swift Biography. 1:07 So start over here, so when you get this playground, 1:12 the very first page that you see should say, A Swift Biography. 1:16 Now, if you're not on that page you can switch to the relevant playground page, 1:20 and if you don't know how to do that, there's two ways. 1:25 One you can click on the project navigator up here and 1:28 navigate to the right exercise. 1:31 Or at the bottom of each exercise there are these Next and 1:33 Previous buttons that you can click. 1:36 I've also linked to some videos in the teachers notes which you can refer to if 1:38 you get stuck. 1:42 After you've written your program, 1:44 you can proceed to the next video where you can compare my solution to yours. 1:45 Ready? 1:50 Get started on your program, I'll show you my version in the next video. 1:51
You need to sign up for Treehouse in order to download course files.Sign up