Git Product home page Git Product logo

Comments (9)

TeoColuccio avatar TeoColuccio commented on August 15, 2024

Ok sto leggendo come usare il modulo random in python.. Più o meno è la
stessa cosa

2016-10-31 11:02 GMT+01:00 Fabio Z Tessitore [email protected]:

Assigned #10 #10 to @Teodoro777
https://github.com/Teodoro777.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#10 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/APQmnSG9gnuamEvN2qveJWqlxJMcdvkUks5q5by0gaJpZM4Kk2KW
.

from cai.

TeoColuccio avatar TeoColuccio commented on August 15, 2024

Lo 'switch' che in pyhton è assente lo sostituisco con dei semplici elif..

2016-10-31 11:09 GMT+01:00 Teodoro Coluccio [email protected]:

Ok sto leggendo come usare il modulo random in python.. Più o meno è la
stessa cosa

2016-10-31 11:02 GMT+01:00 Fabio Z Tessitore [email protected]:

Assigned #10 #10 to @Teodoro777
https://github.com/Teodoro777.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#10 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/APQmnSG9gnuamEvN2qveJWqlxJMcdvkUks5q5by0gaJpZM4Kk2KW
.

from cai.

TeoColuccio avatar TeoColuccio commented on August 15, 2024

Non c'è un modo per evitare che se premo invio per sbaglio, senza aver
digitato alcuna cifra, non termina l'esecuzione?

2016-10-31 11:25 GMT+01:00 Teodoro Coluccio [email protected]:

Lo 'switch' che in pyhton è assente lo sostituisco con dei semplici elif..

2016-10-31 11:09 GMT+01:00 Teodoro Coluccio [email protected]:

Ok sto leggendo come usare il modulo random in python.. Più o meno è la
stessa cosa

2016-10-31 11:02 GMT+01:00 Fabio Z Tessitore [email protected]:

Assigned #10 #10 to
@Teodoro777 https://github.com/Teodoro777.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#10 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/APQmnSG9gnuamEvN2qveJWqlxJMcdvkUks5q5by0gaJpZM4Kk2KW
.

from cai.

FabioZTessitore avatar FabioZTessitore commented on August 15, 2024

ho caricato una versione che risolve parzialmente il problema.
Invece di input usa raw_input perché input automaticamente cerca di convertire in intero, mentre raw_input no e ti permette di fare un controllo. Però se metti una stringa la conversione poi fallisce lo stesso. Devi aspettare, quando faremo le eccezioni imparerai a gestire bene la cosa

from cai.

TeoColuccio avatar TeoColuccio commented on August 15, 2024

Ottimo.
Che altri tipi di input ci sono?

  • input(): cerca di convertire in intero
  • raw_input() che prende un input grezzo
  • altro?...

2016-10-31 12:38 GMT+01:00 Fabio Z Tessitore [email protected]:

ho caricato una versione che risolve parzialmente il problema.
Invece di input usa raw_input perché input automaticamente cerca di
convertire in intero, mentre raw_input no e ti permette di fare un
controllo. Però se metti una stringa la conversione poi fallisce lo stesso.
Devi aspettare, quando faremo le eccezioni imparerai a gestire bene la cosa


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#10 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/APQmnfyw6dCBxUvahpzS1cixowmQPzUBks5q5dM_gaJpZM4Kk2KW
.

from cai.

FabioZTessitore avatar FabioZTessitore commented on August 15, 2024

non ne conosco altri

from cai.

TeoColuccio avatar TeoColuccio commented on August 15, 2024

Ok ma quindi una stringa con input() da errore?

2016-10-31 12:42 GMT+01:00 Fabio Z Tessitore [email protected]:

non ne conosco altri


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#10 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/APQmna9ClSIFNNRgIxU4Xadq-rixcBCDks5q5dQegaJpZM4Kk2KW
.

from cai.

FabioZTessitore avatar FabioZTessitore commented on August 15, 2024

di perché cerca di convertirla

from cai.

TeoColuccio avatar TeoColuccio commented on August 15, 2024

Ok credo che si può chiudere anche questa issue..

from cai.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.