+ 4

[SOLVED]Please explain this python code to me

I found this code on qpython. can you explain it btw the output is hello and what ever you input #-*-coding:utf8;-*- #qpy:console #qpy:2 """ This is an example file which tell you how to use QPython to develop android app. It use the SL4A feature @Author: River @Date: 2012-12-31 """ import androidhelper droid = androidhelper.Android() line = droid.dialogGetInput() s = "Hello, %s" % (line.result,) droid.makeToast(s) https://code.sololearn.com/cK4L4M4duBkY/?ref=app

14th Jul 2018, 6:45 PM
LONGTIE👔
LONGTIE👔 - avatar
4 ответов
+ 7
It is just an example on how to use qpython's built-in, sl4a-backed modules. Androidhelper allows you for easy building of Android apps. This example shows you how to display a toast :)
14th Jul 2018, 8:15 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 4
;) it is this little Android message at the bottom of the screen, which pops up when you for example download a file or making an app update... https://i.ytimg.com/vi/QoXvV2GAcek/hqdefault.jpg
14th Jul 2018, 8:31 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 4
14th Jul 2018, 8:37 PM
LONGTIE👔
LONGTIE👔 - avatar
+ 3
Kuba Siekierzyński a toast? coding thing? or breakfast food toast?
14th Jul 2018, 8:28 PM
LONGTIE👔
LONGTIE👔 - avatar