Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.7 KB

File metadata and controls

33 lines (24 loc) · 1.7 KB

**Day 1 - 14/10/2022 Lesson 1 - variables, constants, strings, and numbers

Who have already know basis of Swift may skip this lesson till SwiftUI lessons will started**

Sections here:

  1. Why Swift?
  2. About this course
  3. Introduction: How to follow along - about learning and approve your skills, Playground
  4. How to create variables and constants - results of lesson in Lesson001.playground file
    • Why does Swift have variables? - the reason of variables needs (var)
    • Why does Swift have constants as well as variables? - explanation of needs constants (let)
    • Test: Variables
    • Test: Constants

Lesson001-01

  1. How to create strings - String type usage. Symbol escaping, multilines strings, .count property, .uppercased(), .hasPrefix(), .hasSuffix() methods usage
    • Why does Swift need multi-line strings? - explanation of multi-lines strings needs
    • Test: Multi-line strings

Lesson001-02

  1. How to store whole numbers - learning using of numbers, mubber whole numbers dividers _, operators +, - ,* ,/, short operators +=, -=, *=, /=, check method .isMultiple(of:)
    • Test: Strings and integers

Lesson001-03

  1. How to store decimal numbers - working with decimal numbers
    • Why does Swift need both Doubles and Integers?
    • Why is Swift a type-safe language?

Lesson001-04

Lesson playground available at Lesson001/Lesson001.playground.