Recent Changes - Search:

Oktatás

* Programozás 2
  + feladatsor
  + C feladatsor
  + Python feladatsor
  + GitHub oldal

* Szkriptnyelvek
  + feladatsor
  + quick link

* levelezősök
  + Adator. prog.
  + feladatsor
  + quick link

teaching assets


Félévek

* 2024/25/1
* archívum


Linkek

* kalendárium
   - munkaszüneti napok '20
* tételsorok
* jegyzetek
* szakdolgozat / PhD
* ösztöndíjak
* certificates
* C lang.
* C++
* C#
* Clojure
* D lang.
* Java
* Nim
* Scala


[ edit | logout ]
[ sandbox | passwd ]

20121001a

String method

Select an arbitrary string method and write a little script that demonstrates it.

Some important points:

  • The script should do something useful. Be able to describe the script in a sentence. Put a comment to the beginning of the script and explain what it does.
  • put the main part of the script in a main() function
  • The main() function should be executed only if the script is called directly. If the script is called as a module, then the main() function shouldn't be executed automatically.

Here is how to read from the standard input (i.e. keyboard):

>>> s = raw_input("Name: ")
Name: Laszlo
>>> s
'Laszlo'
>>>

In Python 3 raw_input() was renamed to input().

Cloud City

  

Blogjaim, hobbi projektjeim

* The Ubuntu Incident
* Python Adventures
* @GitHub
* heroku
* extra
* haladó Python
* YouTube listák


Debrecen | la France


[ edit ]

Edit - History - Print *** Report - Recent Changes - Search
Page last modified on 2015 June 24, 16:08