Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
3

How do I define my variable?

AaliyahBishop
AaliyahBishop

So I've created a new program for the same purpose, to create a heads and tails game but it says my flip variable is undefined how do i define it?

3 years ago
Answered by AqtionView Answer
You are viewing a single comment. View All
1
CodeLongAndPros
CodeLongAndPros

Look up on namespaces.
You have lines 5-6 in the function coinFlip and 7-11 in __main___
You need to indent 7-11 by one.

3 years ago
1
AaliyahBishop
AaliyahBishop

@CodeLongAndPros
how to define newScore?

3 years ago