3. Python basics for input
▪ function input ()
▪ nested function call
▪ variables
▪ int()
▪ float()
Input Process Output
Examples
▪ name = input (’What is your
name? ’)
▪ months = int(input(’ What
number of months are you
interested in??’))
▪ costs = float(input(’What are
your costs per month??’))
4. Python basics for process
Performing calculations
+ adding
- subtraction
* multiplying
/ division
// division integer
% reszta z dzielenia
** compounding
Input Process Output
Examples
period = months * costs
5. Python basics for output
▪ function
▪ arguments
▪ quote’ vs. apostrophe"
▪ triple quotes
▪ comments #
Input Process Output
Examples
print('Hello ’, name)
print("Hello 'world!’ ")
print("""Hello
world
!""")
7. Basics configuration of the
development environment in the cloud
1. Make sure your local Python
version is supported by the
server. Use the command
line: Python -V
2. You can check supported
Python versions by Google
App Engine at:
https://cloud.google.com/a
ppengine/docs/standard/pyt
hon3/runtime
8. Create an App Engine „application” for your
Cloud project (this registers the applications on
the server)
1. Log in to your google account (or
create an account)
https://bit.ly/3GgoEYF
2. Create your first Google cloud
project (https://bit.ly/3VqMCVg )
3. Activate your billing account (you
get $300 initially,
https://bit.ly/3WJHgFY )
4. Create an App Engine application
for your Cloud project
(https://bit.ly/3jlLzsl )
5. Enable the API
(https://bit.ly/3ji2Dzu )
! There is an alternative way using Google CLI, here is a link to the instructions: https://cloud.google.com/resource-manager/docs/creating-
managing-projects#gcloud
! Make sure your region and zone are set https://cloud.google.com/compute/docs/regions-zones/changing-default-zone-region
https://console.cloud.google.com/compute/settings?_ga=2.26462261.988969811.1680189016-
1829979051.1666936576&project=pythonfirstapp-382216 (after init region and zone you mest reboot cli configuration)
9. Source
▪ Gaddis T., Python dla zupełnie początkujących.
Wydanie IV. Helion 2019.
▪ Ch-Carroll M., Google App Engine. Kod w
chmurze. Helion. 2011.
▪ Google App Engine website
▪ https://cloud.google.com/appengine/docs/stan
dard/python3/runtime
▪ Official source form Python community
▪ https://docs.python.org/3.11/tutorial/index.ht
ml
10. Thank you for your
attention! Please submit
any comments on the
software-engineers.org
PhD Artur Machura
arturmachura.info