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.
4 odpowiedzi
+ 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
+ 1
probably Boolean will come into handy in this case.
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 :)
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:)