# Unexpected ")"

**URL:** <https://discourse.julialang.org/t/unexpected/38115>\
**Category:** General Usage\
**Created:** [April 23, 2020, 11:23pm UTC](https://discourse.julialang.org/t/unexpected/38115 "2020-04-23T23:23:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MJMB](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mjmb/32/17613_2.png) [@MJMB](https://discourse.julialang.org/u/MJMB)\
**Post date:** [April 23, 2020, 11:23pm UTC](https://discourse.julialang.org/t/unexpected/38115/1 "2020-04-23T23:23:13Z")

</div>

@constraint(Mod, Load[t], sum(P[f, t] for fin F, for t in T))==Demand(t)

I got an error for that showing unexpected")"

Can i get more explanation about the error

---

<div class="post-metadata">

**Author:** ![anon94023334](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon94023334](https://discourse.julialang.org/u/anon94023334)\
**Post date:** [April 23, 2020, 11:36pm UTC](https://discourse.julialang.org/t/unexpected/38115/2 "2020-04-23T23:36:14Z")

</div>

`for f in F for t in T` may be what you want. There’s a spurious comma there.

But realize that will inner-loop `t` in an outer loop of `f`:

```julia
julia> [(a,b) for a in 1:3 for b in 1:3]
9-element Array{Tuple{Int64,Int64},1}:
 (1, 1)
 (1, 2)
 (1, 3)
 (2, 1)
 (2, 2)
 (2, 3)
 (3, 1)
 (3, 2)
 (3, 3)

```

---

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [April 24, 2020, 12:08am UTC](https://discourse.julialang.org/t/unexpected/38115/3 "2020-04-24T00:08:45Z")

</div>

You need a space between f and in

---

<div class="post-metadata">

**Author:** ![MJMB](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mjmb/32/17613_2.png) [@MJMB](https://discourse.julialang.org/u/MJMB)\
**Post date:** [April 24, 2020, 12:14am UTC](https://discourse.julialang.org/t/unexpected/38115/4 "2020-04-24T00:14:27Z")

</div>

Thank you  
it work fine now
