0

I just want to freeze this

A=a If condition1: A=input ("name:") . . . A = input("enter the value:") If condition 1 is true then i dont want the user to change the vale of A on 2nd time but if its false then user can change it 2nd time.

25th Aug 2020, 11:16 AM
Kairav Bhatia
Kairav Bhatia - avatar
4 Answers
+ 2
Can you share the code in the playground, that way it is easier to see your code, conditions, etc. Currently its tough to say
25th Aug 2020, 11:23 AM
Steven M
Steven M - avatar
+ 1
probably Boolean will come into handy in this case.
25th Aug 2020, 11:30 AM
minirkk
minirkk - avatar
0
Sure but its too large code as i was trying yo make a Tik tak toe game , the problem is if user inputed cross in first box then he should not do it again. I will share the code in an hour or two as now my dad has taken my laptop :)
25th Aug 2020, 11:29 AM
Kairav Bhatia
Kairav Bhatia - avatar
0
the only problem here I face is that the user should not enter cross or circle on the same spot again. I use # for cross, @ for circle. here is the code:- https://drive.google.com/file/d/1DC0l9yYppAfkw8DVag6BdFBG5ylmFyN8/view?usp=sharing you can also share some ways in which I can make this code some less WET:)
25th Aug 2020, 3:00 PM
Kairav Bhatia
Kairav Bhatia - avatar