How can i import numbers? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can i import numbers?

numbers

22nd Jan 2017, 3:34 PM
Marv
6 Answers
+ 2
Do mean import data from a file?
22nd Jan 2017, 3:42 PM
Sean Kudebeh
Sean Kudebeh - avatar
+ 2
You can't begin a variable ( function, or whatever ) name with a digit... try to: def onex(): ... or whatever you want as 'onetimes' but begining with a letter. The underscore is also permitted, so you can name your function '_1x' if you prefer ;)
22nd Jan 2017, 4:02 PM
visph
visph - avatar
+ 1
Show us your code ^^
22nd Jan 2017, 3:48 PM
visph
visph - avatar
0
no i want to def a situation called 1x but the error is invalid synthex
22nd Jan 2017, 3:45 PM
Marv
0
import string from random import * def 1x(): print("...") Ps: I am new in python and i need the number, because it goes up to 18
22nd Jan 2017, 3:51 PM
Marv
0
thanks a lot
22nd Jan 2017, 4:03 PM
Marv