0
Please help Couple of questions in python
1)How do I make graphics in python let’s say for a game or website is it possible 2)i see by coding ground web you program a few dif tipes of stuff together html css jr can you also do that by python if yes how (ANSWERED 3) what do I do if I want that if there is no input is should say need input and also make a min amount of letter 4) what language is apple ? Android ? And how do I access the coding on my phone Ps you don’t have to answer all of them
6 Respuestas
+ 1
1/2) django for web development using python.
https://www.djangoproject.com/
3) check if input has value, if not print what ever you want.
4) app_language={"ios": "Swift", "android": "Kotlin"}
Your mobile has binary executable files installed.
+ 1
Lz1234 we need a break condition for while loop, otherwise it will loop for infinite if not receiving any input from user. This sample code will ask upto MAX_RETRY times for the input. cnt is a variable which keeps record of number of input asked.
0
Sushil Prasad
Yhanks by 3) how do i write that in code that was my question
0
Lz1234 you can try something like this
x = input()
cnt = 0
MAX_RETRY = 2
while(x is None or x == ""):
print("Please input a valid data")
x = input()
cnt +=1
if cnt == MAX_RETRY:
break
print("You have entered: ", x)
0
Sushil Prasad
What the cnt =0 dont get what thats for
0
Get that thanks