Please help Couple of questions in python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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

12th Oct 2021, 6:09 PM
Lz1234
6 Answers
+ 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.
13th Oct 2021, 2:35 PM
Sushil 🛡️
Sushil 🛡️ - avatar
+ 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.
13th Oct 2021, 5:45 PM
Sushil 🛡️
Sushil 🛡️ - avatar
0
Sushil Prasad Yhanks by 3) how do i write that in code that was my question
13th Oct 2021, 4:55 PM
Lz1234
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)
13th Oct 2021, 5:19 PM
Sushil 🛡️
Sushil 🛡️ - avatar
0
Sushil Prasad What the cnt =0 dont get what thats for
13th Oct 2021, 5:22 PM
Lz1234
0
Get that thanks
13th Oct 2021, 5:50 PM
Lz1234