46,497 views
19 votes
19 votes
Variables are used to store information. List one example of a number that you may want to store and one example of a string you may want to store. ​

User SDJSK
by
2.9k points

2 Answers

10 votes
10 votes
I am haven’t understood. The questions properly but here’s my take on it.
So the example of a number that i want to store is :-

X = 10

So i dont think you understood the base so let me just clear it for you . The x is. Varaible umm like a USB it only outputs the information when it is supposed to so if you insert the usb into the laptop then only you can see the files right? So in the same way A variable works..


Test this code out on thonny

X=10

print(x)



Now for the second question one example of a string you may want to store so STRING basically means it out puts text which are inside single quote double quote or thriller quotes..

Like :-


print (‘hello world’)

print(“hello world”)

print(‘‘‘hello world’’’)


NOTE:- if this wasn’t you question’s answer sorry , but i tried :)
User Jaydeep
by
2.5k points
19 votes
19 votes

Answer:

Please explain the question

User Ragunathan
by
2.4k points