How can I define variable on python ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can I define variable on python ?

Can someone gimme example

18th Jan 2021, 11:01 PM
טל קינסטליך
טל קינסטליך - avatar
6 Answers
+ 5
Do the python course, you will learn all basics there https://www.sololearn.com/Course/Python/?ref=app
18th Jan 2021, 11:28 PM
Benjamin Jürgens
Benjamin Jürgens - avatar
+ 3
Python is not typed language like java or c or cpp,just choose variable name then give it a value a = 14 B = "Hello" print(a) ===> 14
18th Jan 2021, 11:13 PM
HBhZ_C
HBhZ_C - avatar
+ 2
advice = "Do the Python course" print(advice)
19th Jan 2021, 2:10 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Do the python course
19th Jan 2021, 1:19 AM
Mohammad Hejazi
Mohammad Hejazi - avatar
0
Thanks can you gimme explain how to write it on the print?
18th Jan 2021, 11:24 PM
טל קינסטליך
טל קינסטליך - avatar
0
Here a is a variable and you need just to type it as argument to the print function print(a) טל קינסטליך
19th Jan 2021, 5:12 PM
HBhZ_C
HBhZ_C - avatar