Swift - Loops
Which of the following is the correct syntax to create a stride in Swift from 1 to 10 with step 3, excluding 10?
from, to or through, and by.stride(from: 1, to: 10, by: 3), which is correct syntax and excludes 10. stride(from: 1, through: 10, by: 3) includes 10. Options C and D have incorrect syntax.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions