• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
Menu
0

why does x need brackets?

>>> x = 4 >>> x + = 5 >>> print (x)

python
29th Jul 2017, 7:57 PM
Carson Feng
Carson Feng - avatar
2 odpowiedzi
+ 2
because the print statement is a function and x is the argument of it
29th Jul 2017, 8:05 PM
Dennik

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
Loops and conditions
2 Votes
Algorithm to create maze-like grid
2 Votes
photo upload issue in html code
0 Votes
app for lessons
1 Votes
I can't figure out how to use the getElementById code in JavaScript Code Playground, I've tried multiple times and watched YT
0 Votes
Need a personal tutor
0 Votes
Community and feed option
0 Votes
How Much RAM is Required for Object Detection Project
0 Votes
How can I turn my .py files to .exe files?
1 Votes
Hey ! how to install modules on this app
0 Votes