all AI news
Learn SwiftUI (Day 1/100)
April 30, 2024, 7:55 p.m. | BC
DEV Community dev.to
Swift
- Variable
- Constants
- String and multiple-line string
- Integer
- Double
import Cocoa
// "var" means make a new variable
var greeting = "Hello, playground"
print(greeting)
var name = "hello"
print(name)
name = "world"
print(name)
// let: Declares a constant that cannot be changed once it has been set, i.e., an immutable variable
let lang = "python"
print(lang)
// lang = "java" // Error: cannot assign to value
// print(lang)
/*
Best practice suggests that you should default to using let to …
hello import integer learn line multiple playground python set string swift swiftui world
More from dev.to / DEV Community
Jobs in AI, ML, Big Data
Software Engineer for AI Training Data (School Specific)
@ G2i Inc | Remote
Software Engineer for AI Training Data (Python)
@ G2i Inc | Remote
Software Engineer for AI Training Data (Tier 2)
@ G2i Inc | Remote
Data Engineer
@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania
Artificial Intelligence – Bioinformatic Expert
@ University of Texas Medical Branch | Galveston, TX
Lead Developer (AI)
@ Cere Network | San Francisco, US